nixos-config/scripts/wlauncher.nix

13 lines
249 B
Nix
Raw Normal View History

2022-10-18 21:45:20 -03:00
{ pkgs, ... }:
2022-08-19 20:40:39 -03:00
let
inherit (pkgs.uservars) dmenu;
available_menus = {
bmenu = "bmenu run";
2022-12-06 21:59:46 -03:00
rofi = "rofi -show drun -sort";
2022-08-19 20:40:39 -03:00
};
menu_cmd = available_menus.${dmenu};
2023-01-22 18:12:04 -03:00
in
pkgs.writeShellScriptBin "wlauncher" ''
2022-08-19 20:40:39 -03:00
exec ${menu_cmd} "$@"
''