extract dmenu and launcher
This commit is contained in:
parent
270deeab42
commit
6d3d7e5d44
10 changed files with 59 additions and 29 deletions
11
scripts/wlauncher.nix
Normal file
11
scripts/wlauncher.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ 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} "$@"
|
||||
''
|
Loading…
Add table
Add a link
Reference in a new issue