add pentadactyl
[~bandali/configs] / bspwm / .local / bin / panel
CommitLineData
dac80d79
AB
1#! /bin/sh
2
3if [ $(pgrep -cx panel) -gt 1 ] ; then
4 printf "%s\n" "The panel is already running." >&2
5 exit 1
6fi
7
8trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
9
10[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO"
11mkfifo "$PANEL_FIFO"
12
13bspc config top_padding $PANEL_HEIGHT
14bspc control --subscribe > "$PANEL_FIFO" &
15#xtitle -sf 'T%s' > "$PANEL_FIFO" &
16#clock -sf 'S%a %H:%M' > "$PANEL_FIFO" &
17
853df981
AB
18pamixer --get-volume > /tmp/volinfo
19if $(pamixer --get-mute) ; then
dac80d79 20 echo ⮝ > /tmp/spkicon
853df981
AB
21else
22 echo ⮟ > /tmp/spkicon
23fi
dac80d79
AB
24conky > "$PANEL_FIFO" &
25
26. panel_colors
27
64b0f6eb 28cat "$PANEL_FIFO" | panel_bar | bar-aint-recursive -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY1","$PANEL_FONT_FAMILY2","$PANEL_FONT_FAMILY3" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" &
dac80d79
AB
29
30wait