summaryrefslogtreecommitdiff
path: root/i3blocks-audio.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2021-02-28 08:15:17 -0500
committerAdam T. Carpenter <atc@53hor.net>2021-02-28 08:15:17 -0500
commit186125d7512bd4dd095cd7b60bc648eb603c2290 (patch)
tree6392b7d9cfd4aedea093b98152d83b8d7a01afec /i3blocks-audio.sh
parentfef48aa78c305db6b5be81bff5facacba0a76f5f (diff)
downloadscripts-186125d7512bd4dd095cd7b60bc648eb603c2290.tar.xz
scripts-186125d7512bd4dd095cd7b60bc648eb603c2290.zip
moved all i3-related scripts into i3 or i3blocks config
Diffstat (limited to 'i3blocks-audio.sh')
-rwxr-xr-xi3blocks-audio.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/i3blocks-audio.sh b/i3blocks-audio.sh
deleted file mode 100755
index 1a54199..0000000
--- a/i3blocks-audio.sh
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-low=25
-mid=50
-high=75
-icon_low=󰕿
-icon_mid=󰖀
-icon_high=󰕾
-icon_mute=󰝟
-
-volume=$(mixer vol | cut -d':' -f2)
-icon=
-[ $volume -eq 0 ] && icon=$icon_mute
-[ $volume -gt 0 ] && [ $volume -lt $low ] && icon=$icon_low
-[ $volume -ge $low ] && [ $volume -lt $high ] && icon=$icon_mid
-[ $volume -ge $high ] && icon=$icon_high
-printf "%s%s%%\n" $icon $volume