nixos-config/scripts/wfile-picker.nix

13 lines
245 B
Nix
Raw Normal View History

2022-12-06 21:59:46 -03:00
{ pkgs, ... }:
let
2024-06-05 01:18:48 -03:00
inherit (config.my) dmenu;
2022-12-06 21:59:46 -03:00
available_menus = {
bmenu = "bmenu run";
rofi = "rofi -show drun -sort";
};
menu_cmd = available_menus.${dmenu};
2023-01-22 18:12:04 -03:00
in
pkgs.writeShellScriptBin "wlauncher" ''
2022-12-06 21:59:46 -03:00
exec ${menu_cmd} "$@"
''