update rofi config

This commit is contained in:
Leonardo Eugênio 2022-12-06 21:59:46 -03:00
parent 9e737da231
commit 875fe5ebe4
6 changed files with 66 additions and 6 deletions

11
scripts/wfile-picker.nix Normal file
View file

@ -0,0 +1,11 @@
{ pkgs, ... }:
let
inherit (pkgs.uservars) dmenu;
available_menus = {
bmenu = "bmenu run";
rofi = "rofi -show drun -sort";
};
menu_cmd = available_menus.${dmenu};
in pkgs.writeShellScriptBin "wlauncher" ''
exec ${menu_cmd} "$@"
''