mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-03 23:29:23 +00:00
Prevent Waybar stacking on resume (#448)
* Create omarchy-cmd-restart-waybar * Replace -SIGUSR2 waybar instances * Add migration * Add or statment in case waybar is dead * Just use omarchy-restart-waybar --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
10
migrations/1754113760.sh
Normal file
10
migrations/1754113760.sh
Normal file
@ -0,0 +1,10 @@
|
||||
echo "Change reload Waybar on unlock command to prevent stacking"
|
||||
|
||||
if ! grep -q 'on_unlock_cmd *= *omarchy-restart-waybar' ~/.config/hypr/hypridle.conf; then
|
||||
sed -i \
|
||||
'/^ on_unlock_cmd = pkill -SIGUSR2 waybar[[:space:]]*# prevent stacking of waybar when waking$/c\
|
||||
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking' \
|
||||
~/.config/hypr/hypridle.conf
|
||||
|
||||
omarchy-restart-waybar
|
||||
fi
|
Reference in New Issue
Block a user