diff options
-rwxr-xr-x | .local/bin/statusbar/bar-cpu | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/bar-ipv4 | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/bar-memory | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/bar-storage | 4 | ||||
-rwxr-xr-x | .local/bin/statusbar/bar-time | 2 | ||||
-rwxr-xr-x | .local/bin/statusbar/bar-volume | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/.local/bin/statusbar/bar-cpu b/.local/bin/statusbar/bar-cpu index c21fe20..46f832b 100755 --- a/.local/bin/statusbar/bar-cpu +++ b/.local/bin/statusbar/bar-cpu | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | case $BUTTON in | 2 | case $BUTTON in |
3 | 1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";; | 3 | 1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";; |
4 | 3) urxvt -e vim ~/.local/bin/statusbar/cpu | 4 | 3) urxvt -e vim ~/.local/bin/statusbar/bar-cpu |
5 | esac | 5 | esac |
6 | mpstat 1 1 | awk '/Average/ { printf "%.2f% ",100-$12 }' | 6 | mpstat 1 1 | awk '/Average/ { printf "%.2f ",100-$12 }' |
7 | temp="$(sensors | awk '/Tctl/ { print $2 } ')"; echo -n ${temp#+} | 7 | temp="$(sensors | awk '/Tctl/ { print $2 } ')"; echo -n ${temp#+} |
diff --git a/.local/bin/statusbar/bar-ipv4 b/.local/bin/statusbar/bar-ipv4 index 4e51eca..85999bc 100755 --- a/.local/bin/statusbar/bar-ipv4 +++ b/.local/bin/statusbar/bar-ipv4 | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | case $BUTTON in | 3 | case $BUTTON in |
4 | 1)notify-send --expire-time=60000 "IP Addresses" "$(ip a | awk '/\/24|\/64/ {if($5=="temporary")print $2 " " $5;else print $2;}')";; | 4 | 1)notify-send --expire-time=60000 "IP Addresses" "$(ip a | awk '/\/24|\/64/ {if($5=="temporary")print $2 " " $5;else print $2;}')";; |
5 | 3)urxvt -e ~/.local/bin/statusbar/ipv4 | 5 | 3)urxvt -e ~/.local/bin/statusbar/bar-ipv4 |
6 | esac | 6 | esac |
7 | ip a | awk '/\/24/ { print $2 }' | cut -d '/' -f 1 | 7 | ip a | awk '/\/24/ { print $2 }' | cut -d '/' -f 1 |
8 | 8 | ||
diff --git a/.local/bin/statusbar/bar-memory b/.local/bin/statusbar/bar-memory index 1e98cca..44a8ed3 100755 --- a/.local/bin/statusbar/bar-memory +++ b/.local/bin/statusbar/bar-memory | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | case $BUTTON in | 3 | case $BUTTON in |
4 | 1)notify-send "$(ps axc -o cmd:15,%mem --sort=-%mem | head -6)";; | 4 | 1)notify-send "$(ps axc -o cmd:15,%mem --sort=-%mem | head -6)";; |
5 | 3)urxvt -e vim ~/.local/bin/statusbar/memory | 5 | 3)urxvt -e vim ~/.local/bin/statusbar/bar-memory |
6 | esac | 6 | esac |
7 | free --si -h | grep Mem | awk '{ print $3 "/" $2 }' | 7 | free --si -h | grep Mem | awk '{ print $3 "/" $2 }' |
8 | 8 | ||
diff --git a/.local/bin/statusbar/bar-storage b/.local/bin/statusbar/bar-storage index d7b5fcf..a162834 100755 --- a/.local/bin/statusbar/bar-storage +++ b/.local/bin/statusbar/bar-storage | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | case $BUTTON in | 3 | case $BUTTON in |
4 | 1)notify-send "$(df -H | grep "Filesystem\|/dev/sd")";; | 4 | 1)notify-send "$(df -H | grep "Filesystem\|/dev/sd\|/dev/mapper")";; |
5 | 3)urxvt -e vim ~/.local/bin/statusbar/storage | 5 | 3)urxvt -e vim ~/.local/bin/statusbar/storage |
6 | esac | 6 | esac |
7 | df -H | awk '/\/home/ { print $4 }' | 7 | df -H | awk '/\/$/ { print $4 }' |
diff --git a/.local/bin/statusbar/bar-time b/.local/bin/statusbar/bar-time index f61a268..781ba8f 100755 --- a/.local/bin/statusbar/bar-time +++ b/.local/bin/statusbar/bar-time | |||
@@ -2,6 +2,6 @@ | |||
2 | 2 | ||
3 | case $BUTTON in | 3 | case $BUTTON in |
4 | 1)notify-send "$(ncal -hb)";; | 4 | 1)notify-send "$(ncal -hb)";; |
5 | 3)urxvt -e vim ~/.local/bin/statusbar/time | 5 | 3)urxvt -e vim ~/.local/bin/statusbar/bar-time |
6 | esac | 6 | esac |
7 | date +"%r %A %D" | 7 | date +"%r %A %D" |
diff --git a/.local/bin/statusbar/bar-volume b/.local/bin/statusbar/bar-volume index d9bcc9d..b67c6ca 100755 --- a/.local/bin/statusbar/bar-volume +++ b/.local/bin/statusbar/bar-volume | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | case $BUTTON in | 4 | case $BUTTON in |
5 | 1)urxvt -e alsamixer;; | 5 | 1)urxvt -e alsamixer;; |
6 | 3)urxvt -e vim ~/.local/bin/statusbar/volume;; | 6 | 3)urxvt -e vim ~/.local/bin/statusbar/bar-volume;; |
7 | 4)amixer -q sset Master 1%+ unmute;; | 7 | 4)amixer -q sset Master 1%+ unmute;; |
8 | 5)amixer -q sset Master 1%- unmute;; | 8 | 5)amixer -q sset Master 1%- unmute;; |
9 | esac | 9 | esac |