summaryrefslogtreecommitdiffstats
path: root/.local/bin/status
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-06-16 17:07:08 +0200
committerJoe <rrbo@proton.me>2023-06-16 17:07:08 +0200
commit57c8948e4e65d9af28a441ef2c38a974c29f90dd (patch)
treec83c223f57d1ef39ddee6d5b4636e3643e9d7e77 /.local/bin/status
parentup (diff)
downloaddotfiles-bsd-57c8948e4e65d9af28a441ef2c38a974c29f90dd.tar.gz
dotfiles-bsd-57c8948e4e65d9af28a441ef2c38a974c29f90dd.tar.bz2
dotfiles-bsd-57c8948e4e65d9af28a441ef2c38a974c29f90dd.tar.xz
dotfiles-bsd-57c8948e4e65d9af28a441ef2c38a974c29f90dd.tar.zst
dotfiles-bsd-57c8948e4e65d9af28a441ef2c38a974c29f90dd.zip
up
Diffstat (limited to '.local/bin/status')
-rwxr-xr-x.local/bin/status/sb-cpu2
-rwxr-xr-x.local/bin/status/sb-mpd1
-rwxr-xr-x.local/bin/status/sb-volume2
3 files changed, 4 insertions, 1 deletions
diff --git a/.local/bin/status/sb-cpu b/.local/bin/status/sb-cpu
index 3eba1cb..169b24d 100755
--- a/.local/bin/status/sb-cpu
+++ b/.local/bin/status/sb-cpu
@@ -12,7 +12,7 @@ printf " "
case $(hostname -s) in
mother|po-rbo)
stats=$(uptime | head -n1)
- printf "%s " "$(echo "$stats" | sed 's/.*average: *//;s/,.*//')"
+ printf "%s" "$(echo "$stats" | sed 's/.*average: *//;s/,.*//')"
return
;;
mars)
diff --git a/.local/bin/status/sb-mpd b/.local/bin/status/sb-mpd
index e5f6745..21bf2c7 100755
--- a/.local/bin/status/sb-mpd
+++ b/.local/bin/status/sb-mpd
@@ -1,5 +1,6 @@
#!/bin/sh
+return
mp=$(mpc status)
icon=$(echo "$mp" | sed -n 2p | sed -E 's/(^|\])[^[]*($|\[)//g')
case $icon in
diff --git a/.local/bin/status/sb-volume b/.local/bin/status/sb-volume
index 402431d..bc1ca97 100755
--- a/.local/bin/status/sb-volume
+++ b/.local/bin/status/sb-volume
@@ -1,5 +1,7 @@
#!/bin/sh
+[ $(hostname -s) = "mars" ] || return
+
vol="$(mixer vol | awk '{print $7}' | cut -d ':' -f1)"
if [ "$vol" -gt "0" ]; then