From d2fffc40eadd8fc7613e9cb3b164e285ef6f5561 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Jul 2025 16:26:13 -0400 Subject: [PATCH] Add migration to prevent Waybar stacking --- migrations/1753302134.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 migrations/1753302134.sh diff --git a/migrations/1753302134.sh b/migrations/1753302134.sh new file mode 100644 index 0000000..022ce56 --- /dev/null +++ b/migrations/1753302134.sh @@ -0,0 +1,8 @@ +echo "Reload Waybar on unlock to prevent stacking" + +if ! grep -q 'on_unlock_cmd *= *pkill -SIGUSR2 waybar' ~/.config/hypr/hypridle.conf; then + sed -i '/^general[[:space:]]*{/,/^}/ { + /on_unlock_cmd *=/d + /^}$/ i\ on_unlock_cmd = pkill -SIGUSR2 waybar # prevent stacking of waybar when waking + }' ~/.config/hypr/hypridle.conf +fi