From 6c055d89bdfd51eab7ba111a95dd55701d1c9888 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 30 Nov 2020 18:54:24 +0530 Subject: polished the bar and added it to XMonad autostarts --- XMonad/baraction | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'XMonad/baraction') 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 $(