23 lines
527 B
C
Executable file
23 lines
527 B
C
Executable file
#!/bin/sh
|
|
|
|
PANEL_HEIGHT=24
|
|
PANEL_FONT_FAMILY="-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1"
|
|
|
|
COLOR_FOREGROUND='#FFAAAAAA'
|
|
COLOR_BACKGROUND='#FF222222'
|
|
|
|
if [ $(pgrep -cx panel) -gt 1 ] ; then
|
|
printf "%s\n" "The panel is already running." >&2
|
|
exit 1
|
|
fi
|
|
|
|
trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
|
|
|
|
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 &
|
|
|
|
sleep 1
|
|
xdo lower $(xdo id -a bar)
|
|
|
|
wait
|