herbstluftwm: kill all instances of panel.sh on restart

This commit is contained in:
mequidis
2022-06-11 15:04:32 +03:00
parent 8106a150a9
commit 16ae316701

View File

@ -212,6 +212,7 @@ hc set focus_follows_mouse 1
# panel # panel
hc detect_monitors hc detect_monitors
ps aux | grep panel.sh | grep -v grep | awk '{print $2}' | xargs kill
panel=~/.config/herbstluftwm/panel/panel.sh panel=~/.config/herbstluftwm/panel/panel.sh
for monitor in $(hc list_monitors | cut -d: -f1); do for monitor in $(hc list_monitors | cut -d: -f1); do
"$panel" "$monitor" & "$panel" "$monitor" &