mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 12:02:09 +02:00
add close wofi when loose focus
This commit is contained in:
@@ -14,13 +14,18 @@ let
|
|||||||
if pgrep wofi; then
|
if pgrep wofi; then
|
||||||
pkill wofi
|
pkill wofi
|
||||||
else
|
else
|
||||||
wofi -p " Apps" --show drun
|
wofi -p " Apps" --show drun &
|
||||||
|
# Quit when not focused anymore
|
||||||
|
sleep 0.2
|
||||||
|
while true; do
|
||||||
|
window=$(hyprctl activewindow | grep "wofi")
|
||||||
|
if [[ ! $window ]]; then
|
||||||
|
pkill wofi
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 0.2
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
# if pgrep tofi; then
|
|
||||||
# pkill tofi
|
|
||||||
# else
|
|
||||||
# tofi-drun --drun-launch=true
|
|
||||||
# fi
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
powermenu = pkgs.writeShellScriptBin "powermenu"
|
powermenu = pkgs.writeShellScriptBin "powermenu"
|
||||||
|
|||||||
Reference in New Issue
Block a user