add tofi commandw

This commit is contained in:
Hadi 2024-10-16 00:40:40 +02:00
parent f878719b3d
commit fdec6ed81c
2 changed files with 8 additions and 1 deletions

View File

@ -8,5 +8,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md))
- [ ] neotest golang - [ ] neotest golang
- [ ] nvim dap - [ ] nvim dap
- [ ] Tofi configuration
- [ ] OS Hardening with nix-mineral - [ ] OS Hardening with nix-mineral

View File

@ -16,6 +16,11 @@ let
else else
wofi --show drun wofi --show drun
fi fi
# if pgrep tofi; then
# pkill tofi
# else
# hyprctl dispatch exec $(tofi-drun)
# fi
''; '';
powermenu = pkgs.writeShellScriptBin "powermenu" powermenu = pkgs.writeShellScriptBin "powermenu"
@ -23,6 +28,8 @@ let
'' ''
if pgrep wofi; then if pgrep wofi; then
pkill wofi pkill wofi
# if pgrep tofi; then
# pkill tofi
else else
options=( options=(
"󰌾 Lock" "󰌾 Lock"
@ -33,6 +40,7 @@ let
) )
selected=$(printf '%s\n' "''${options[@]}" | wofi --dmenu) selected=$(printf '%s\n' "''${options[@]}" | wofi --dmenu)
# selected=$(printf '%s\n' "''${options[@]}" | tofi --prompt-text "> ")
selected=''${selected:2} selected=''${selected:2}
case $selected in case $selected in