nixos-config/scripts/wlauncher.nix

12 lines
243 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";
rofi = "rofi -show drun";
};
menu_cmd = available_menus.${dmenu};
in pkgs.writeShellScriptBin "wlauncher" ''
exec ${menu_cmd} "$@"
''