diff options
Diffstat (limited to 'herbstluftwm/bar/sysinfo_bar')
-rwxr-xr-x | herbstluftwm/bar/sysinfo_bar | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/herbstluftwm/bar/sysinfo_bar b/herbstluftwm/bar/sysinfo_bar new file mode 100755 index 00000000..83158c50 --- /dev/null +++ b/herbstluftwm/bar/sysinfo_bar @@ -0,0 +1,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 |