add tofi commandw
This commit is contained in:
parent
f878719b3d
commit
fdec6ed81c
@ -8,5 +8,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
|
||||
- [ ] neotest golang
|
||||
- [ ] nvim dap
|
||||
|
||||
- [ ] Tofi configuration
|
||||
- [ ] OS Hardening with nix-mineral
|
||||
|
@ -16,6 +16,11 @@ let
|
||||
else
|
||||
wofi --show drun
|
||||
fi
|
||||
# if pgrep tofi; then
|
||||
# pkill tofi
|
||||
# else
|
||||
# hyprctl dispatch exec $(tofi-drun)
|
||||
# fi
|
||||
'';
|
||||
|
||||
powermenu = pkgs.writeShellScriptBin "powermenu"
|
||||
@ -23,6 +28,8 @@ let
|
||||
''
|
||||
if pgrep wofi; then
|
||||
pkill wofi
|
||||
# if pgrep tofi; then
|
||||
# pkill tofi
|
||||
else
|
||||
options=(
|
||||
" Lock"
|
||||
@ -33,6 +40,7 @@ let
|
||||
)
|
||||
|
||||
selected=$(printf '%s\n' "''${options[@]}" | wofi --dmenu)
|
||||
# selected=$(printf '%s\n' "''${options[@]}" | tofi --prompt-text "> ")
|
||||
selected=''${selected:2}
|
||||
|
||||
case $selected in
|
||||
|
Loading…
Reference in New Issue
Block a user