aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/bar/sysinfo_bar
blob: 83158c50ab0d3511cd2a9a2a9bd6ce8d94ea6d73 (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/zsh
BAR_COLOR="#171520"
COLOR1="#0d0c13"
COLOR2="#70638F"

A0="%{B"$COLOR1"}%{F"$COLOR2"}%{B"$COLOR2"}%{F"$COLOR1"}"
A1="%{B"$COLOR2"}%{F"$COLOR1"}%{B"$COLOR1"}%{F"$COLOR2"}"
A2="%{B"$COLOR1"}%{F"$COLOR2"}%{B"$COLOR2"}%{F"$COLOR1"}"

right_modules() {
	clock=$(</home/zt/.cache/lemon/clock)
	volume=$(</home/zt/.cache/lemon/volume)
	root=$(</home/zt/.cache/lemon/disk_root)
	home=$(</home/zt/.cache/lemon/disk_home)
	mem=$(</home/zt/.cache/lemon/mem)
	cpu_load=$(</home/zt/.cache/lemon/cpu_load)
	cpu_temp=$(</home/zt/.cache/lemon/cpu_temp)
	weather=$(</home/zt/.cache/lemon/weather)
	echo $A0$A1$weather$A2$cpu_temp$A1$cpu_load$A2$mem$A1$root$A2$home$A1$volume$A2$clock$A1
}

while :; do
	echo "%{r}"$(right_modules)
	sleep 0.1
done