From d760033f89f7284473895b207e1e36b2f934e8b8 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 21 Nov 2014 22:08:00 -0500 Subject: new installation setup --- bspwm/.local/bin/panel | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 bspwm/.local/bin/panel (limited to 'bspwm/.local/bin/panel') diff --git a/bspwm/.local/bin/panel b/bspwm/.local/bin/panel new file mode 100755 index 0000000..a981f43 --- /dev/null +++ b/bspwm/.local/bin/panel @@ -0,0 +1,30 @@ +#! /bin/sh + +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 + +[ -e "$PANEL_FIFO" ] && rm "$PANEL_FIFO" +mkfifo "$PANEL_FIFO" + +bspc config top_padding $PANEL_HEIGHT +bspc control --subscribe > "$PANEL_FIFO" & +#xtitle -sf 'T%s' > "$PANEL_FIFO" & +#clock -sf 'S%a %H:%M' > "$PANEL_FIFO" & + +#pamixer --get-volume > /tmp/volinfo +#if $(pamixer --get-mute) ; then + echo ⮝ > /tmp/spkicon +#else +# echo ⮟ > /tmp/spkicon +#fi +conky > "$PANEL_FIFO" & + +. panel_colors + +cat "$PANEL_FIFO" | panel_bar | bar -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY1","$PANEL_FONT_FAMILY2" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" & + +wait -- cgit v1.2.3-60-g2f50