summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-volume
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
committerjoe <rbo@gmx.us>2025-10-02 11:14:43 +0200
commita190993b0579dfaacd5fe75a49fcb3214e2cb1bf (patch)
tree128708ae1ca9f6e5ab433e73542d7b52125357df /.local/bin/status/sb-volume
parentup (diff)
downloaddotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.gz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.bz2
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.xz
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.tar.zst
dotfiles-bsd-a190993b0579dfaacd5fe75a49fcb3214e2cb1bf.zip
up
Diffstat (limited to '.local/bin/status/sb-volume')
-rwxr-xr-x.local/bin/status/sb-volume33
1 files changed, 0 insertions, 33 deletions
diff --git a/.local/bin/status/sb-volume b/.local/bin/status/sb-volume
deleted file mode 100755
index bc1ca97..0000000
--- a/.local/bin/status/sb-volume
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-
-[ $(hostname -s) = "mars" ] || return
-
-vol="$(mixer vol | awk '{print $7}' | cut -d ':' -f1)"
-
-if [ "$vol" -gt "0" ]; then
- icon=""
-else
- icon="婢"
-fi
-
-mic="$(mixer rec | awk '{print $7}' | cut -d ':' -f1)"
-
-if [ "$mic" -gt "0" ]; then
- micon=""
-else
- micon=""
-fi
-
-echo -n "$micon $icon "
-
-case $(echo $vol / 12.5 | bc) in
- "0") printf "[ ]";;
- "1") printf "[= ]";;
- "2") printf "[== ]";;
- "3") printf "[=== ]";;
- "4") printf "[==== ]";;
- "5") printf "[===== ]";;
- "6") printf "[====== ]";;
- "7") printf "[======= ]";;
- "8") printf "[========]";;
-esac