nixos-config/scripts/wfile-picker.nix

12 lines
249 B
Nix
Raw Normal View History

2022-12-06 21:59:46 -03:00
{ pkgs, ... }:
let
inherit (pkgs.uservars) dmenu;
available_menus = {
bmenu = "bmenu run";
rofi = "rofi -show drun -sort";
};
menu_cmd = available_menus.${dmenu};
in pkgs.writeShellScriptBin "wlauncher" ''
exec ${menu_cmd} "$@"
''