summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-volume
diff options
context:
space:
mode:
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