Temporary fix for waybar stacking on waking from sleep

Sledge hammer fix by restarting the waybar, but it'll do the job until
we find a better fix for #196
This commit is contained in:
David Heinemeier Hansson
2025-07-20 20:14:57 -05:00
parent af72a45dbd
commit b967223d3c
2 changed files with 7 additions and 0 deletions

6
bin/omarchy-refresh-hypridle Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
# Overwrite local Hypridle settings with the latest in Omarchy, but create a backup
cp -f ~/.config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf.bak 2>/dev/null
cp -f ~/.local/share/omarchy/config/hypr/hypridle.conf ~/.config/hypr/ 2>/dev/null
pkill -x hypridle && uwsm app -- hypridle >/dev/null 2>&1 &

View File

@ -2,6 +2,7 @@ general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend. before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
on_unlock_cmd = pkill waybar && uwsm app -- waybar # FIXME: Temp fix to address stacking waybars
} }
listener { listener {