aboutsummaryrefslogtreecommitdiff
path: root/XMonad/baraction
diff options
context:
space:
mode:
Diffstat (limited to 'XMonad/baraction')
-rwxr-xr-xXMonad/baraction17
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