diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-30 18:54:24 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-11-30 18:54:24 +0530 |
commit | 6c055d89bdfd51eab7ba111a95dd55701d1c9888 (patch) | |
tree | 664c090439ac65414a6e19bf9ddd55f3eb8cd1c7 /XMonad/baraction | |
parent | e75bab87fc1638f5593b19c52a8f73ddcfdefdf2 (diff) |
polished the bar and added it to XMonad autostarts
Diffstat (limited to 'XMonad/baraction')
-rwxr-xr-x | XMonad/baraction | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/XMonad/baraction b/XMonad/baraction index 7a528496..ed3013a1 100755 --- a/XMonad/baraction +++ b/XMonad/baraction @@ -22,7 +22,7 @@ get_cpu_temp() { get_disk_usage() { root=$(df -h / | awk 'NR==2 {print $4 "/" $2}') home=$(df -h /home | awk 'NR==2 {print $4 "/" $2}') - echo "ROOT:" $root " %{B-}" "%{B#E6739F} HOME:" $home " " + echo "ROOT:" $root " %{B-} " "%{B#E6739F} HOME:" $home " " } get_mem_usage() { @@ -34,14 +34,15 @@ get_mute_status() { vol=$(pamixer --get-volume-human) if [ $vol == "muted" ] then - echo "muted" - else - echo "not muted" + echo "%{B#F15BB5}%{F#232627} muted" fi } -while : -do - echo "%{B#FD3A69}%{F#232627} " $(get_disk_usage) "%{B-} %{B#FECD1A} " $(get_cpu_load) "%{B-} %{B#03C4A1}" $(get_cpu_temp) "%{B-} %{B#FA26A0}" $(get_mem_usage) "%{B-}%{F-}%{r}%{B#6F4A8E}" $(get_mute_status) "%{B-} %{B#892CDC}%{F#FCFCFC} " ${DATETIME} " %{F-}%{B-}" - sleep 5 +get_weather() { + echo $(</tmp/weather_stat) +} + +while :; do + echo "%{B#FD3A69}%{F#232627} " $(get_disk_usage) "%{B-} %{B#FECD1A} " $(get_cpu_load) "%{B-} %{B#03C4A1}" $(get_cpu_temp) "%{B-} %{B#00BBF9}" $(get_mem_usage) "%{B-}%{F-}%{r}" $(get_mute_status) "%{B-}%{F-} %{B#9B5DE5}%{F#FCFCFC}" $(get_weather) "%{B-} %{B#892CDC}%{F#FCFCFC} " ${DATETIME} " %{F-}%{B-}" + sleep 3 done |