blob: 20d779ed8ffb533823ce621ad3944bb478f6e7c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env bash
installdir=/
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
defaultpanel="$XDG_CONFIG_HOME/herbstluftwm/panel.sh"
[ -x "$defaultpanel" ] || defaultpanel="$installdir/etc/xdg/herbstluftwm/panel.sh"
panelcmd="${1:-$defaultpanel}"
herbstclient emit_hook quit_panel
monitors=$(herbstclient list_monitors)
for i in $(echo "$monitors" | cut -d':' -f1) ; do
"$panelcmd" "$i" &
done
# wait and restart stalonetray
sleep 1
killall -q stalonetray
while pgrep -u "$UID" -x stalonetray >/dev/null; do
sleep 1
done
herbstclient spawn stalonetray --geometry 1x1+1250+0 --window-layer top -c "$XDG_CONFIG_HOME/stalonetray/stalonetrayrc"
|