aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/bar/sysinfo_bar
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-25 20:28:58 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-25 20:28:58 +0530
commitbc13d406e284d5c843a2744c9edc73e522cc0189 (patch)
treef41b13bd175a682ee072d4b81afacc4ce9d7ba9f /herbstluftwm/bar/sysinfo_bar
parent2b1696744fa839f9adf05337e810472c299e3652 (diff)
added a bar for hlwm
Diffstat (limited to 'herbstluftwm/bar/sysinfo_bar')
-rwxr-xr-xherbstluftwm/bar/sysinfo_bar25
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