diff options
Diffstat (limited to 'XMonad/baraction')
-rwxr-xr-x | XMonad/baraction | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/XMonad/baraction b/XMonad/baraction index 21f7afa6..95d10f76 100755 --- a/XMonad/baraction +++ b/XMonad/baraction @@ -1,6 +1,9 @@ #!/bin/zsh -DATETIME=`date +"%d %b(%A) %H:%M"` +get_date_time() { + datetime=$(date +"%d %b(%A) %H:%M") + echo $datetime +} get_cpu_load() { read cpu a b c previdle rest < /proc/stat @@ -43,6 +46,6 @@ get_weather() { } 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-}" + 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} " $(get_date_time) " %{F-}%{B-}" sleep 3 done |