12 lines
243 B
Nix
12 lines
243 B
Nix
{ pkgs, ... }:
|
|
let
|
|
inherit (pkgs.uservars) dmenu;
|
|
available_menus = {
|
|
bmenu = "bmenu run";
|
|
rofi = "rofi -show drun";
|
|
};
|
|
menu_cmd = available_menus.${dmenu};
|
|
in pkgs.writeShellScriptBin "wlauncher" ''
|
|
exec ${menu_cmd} "$@"
|
|
''
|