aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/panel
blob: 08c7df45e9b70bfdb3fcd4512b3c757944acb121 (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
#! /bin/sh
cd ~/.ratpoison/panel
source ./profile
source ~/.colors

[ -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" &
essid -sf 'E%s' -i 3 -w wlp2s0 > "$PANEL_FIFO" &
volume -i 10 -sf 'V%i' > "$PANEL_FIFO" &
battery -i 5 -sf 'B%i' > "$PANEL_FIFO" &
clock -sf 'S%d %a %H:%M' > "$PANEL_FIFO" &
./music > "$PANEL_FIFO" &
./cpu > "$PANEL_FIFO" &


source ./panel_colors

cat "$PANEL_FIFO" | ./panel_bar | bar -g x$PANEL_HEIGHT -f "$PANEL_FONT_FAMILY" -F "$COLOR_FOREGROUND" -B "$COLOR_BACKGROUND" &

sleep 1;
stalonetray --geometry 4x1-1+1 --icon-gravity E --grow-gravity E  -bg $COLOR0 -i 18 &