1
0
Fork 0

Update bspwm things

This commit is contained in:
Jeremy Kaplan 2016-12-15 20:34:52 -05:00
commit 622ebea2b0
3 changed files with 10 additions and 13 deletions

View file

@ -6,6 +6,8 @@ PANEL_FONT_FAMILY='-misc-inputmononarrow-medium-r-*-*-12-*-*-*-*-*-*-*'
COLOR_FOREGROUND='#FFAAAAAA'
COLOR_BACKGROUND='#FF222222'
PANEL_WM_NAME='bar'
if [ $(pgrep -cx panel) -gt 1 ] ; then
printf "%s\n" "The panel is already running." >&2
exit 1
@ -17,7 +19,7 @@ bspc config bottom_padding $PANEL_HEIGHT
$XDG_CONFIG_HOME/panel/panel_bar.py | lemonbar -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" -b | while read -r line; do sh -c "$line"; done &
wid=$(xdo id -a bar)
wid=$(xdo id -a "$PANEL_WM_NAME")
tries_left=20
while [ -z "$wid" -a "$tries_left" -gt 0 ] ; do
sleep 0.05