We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b24b5 commit 25ac85dCopy full SHA for 25ac85d
waybar/.config/waybar/modules/WaybarAutoHide
@@ -54,6 +54,12 @@ touch "$AUTO_FILE"
54
trap "bar_visible=false; pkill -SIGUSR2 waybar; bar_visible=true" SIGCONT
55
56
while true; do
57
+ # Ensure waybar is running
58
+ if ! pgrep -x "waybar" >/dev/null; then
59
+ sleep 2
60
+ continue
61
+ fi
62
+
63
# Verify if Hyprland is reachable
64
if ! timeout 0.5 hyprctl version >/dev/null 2>&1; then
65
sleep 2
@@ -107,7 +113,6 @@ while true; do
107
113
EDGE1=$(awk -v w="$WIDTH" 'BEGIN {printf "%d", w * 0.9}')
108
114
EDGE2=$(awk -v w="$WIDTH" 'BEGIN {printf "%d", w * 0.99}')
109
115
SHOW_CONDITION=$(( X >= EDGE2 ))
110
- HIDE_CONDITION=$(( X < EDGE1 ))
111
116
;;
112
117
*)
118
EDGE1=$(awk -v h="$HEIGHT" 'BEGIN {printf "%d", h * 0.01}')
0 commit comments