summaryrefslogtreecommitdiff
path: root/bar/volume
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2024-11-17 23:34:54 -0600
committerTim Keller <tjkeller.xyz>2024-11-17 23:34:54 -0600
commit09ada24d4ec23cf24ab136141b354953d1bbc2fa (patch)
tree2c41e87c71ad3f3cd67a8bea0c1413efbab4087d /bar/volume
parent090a3a31683eb08b91351e4d1508a0a73a310a38 (diff)
downloadscripts-09ada24d4ec23cf24ab136141b354953d1bbc2fa.tar.xz
scripts-09ada24d4ec23cf24ab136141b354953d1bbc2fa.zip
reorganize scripts
Diffstat (limited to 'bar/volume')
-rwxr-xr-xbar/volume27
1 files changed, 0 insertions, 27 deletions
diff --git a/bar/volume b/bar/volume
deleted file mode 100755
index 4a4b4a8..0000000
--- a/bar/volume
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/awk -f
-
-BEGIN {
-cmd="amixer -D pipewire sget Master"
-FS="[][]"
-while (cmd | getline) {
- if (NF > 1) {
- vol=int($2)
- if ($4 == "off")
- icon="񂁳"
- else if (vol > 70)
- icon="񂁲"
- else if (vol > 40)
- icon="񂁱"
- else if (vol > 10)
- icon="񂁰"
- else
- icon="񂁯"
- #printf "%s %s | %05.2fdB", icon, $2, $4
- print icon" "$2
- }
-}
-}
-
-##!/bin/sh
-##amixer sget Master | awk -F'[][]' '/%/{print $2" | "$4 " [" $6 "]"}'
-#amixer -M sget Master | sed -n 's/.*Playback [0-9]* \[//; s/. ./ | /; s/\] .off\]/ \[mute\]/p; s/\] .on.//p'