nixos-config/scripts/wlauncher.nix
2022-08-19 20:47:20 -03:00

12 lines
256 B
Nix

{ config, pkgs, lib, ... }:
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} "$@"
''