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
|
- [ ] neotest golang
|
||||||
- [ ] nvim dap
|
- [ ] nvim dap
|
||||||
|
|
||||||
- [ ] Tofi configuration
|
|
||||||
- [ ] OS Hardening with nix-mineral
|
- [ ] OS Hardening with nix-mineral
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user