nixos-config/scripts/wfile-picker.nix
2024-06-05 01:20:42 -03:00

13 lines
245 B
Nix

{ pkgs, ... }:
let
inherit (config.my) dmenu;
available_menus = {
bmenu = "bmenu run";
rofi = "rofi -show drun -sort";
};
menu_cmd = available_menus.${dmenu};
in
pkgs.writeShellScriptBin "wlauncher" ''
exec ${menu_cmd} "$@"
''