summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/volume
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-27 21:11:39 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-27 21:11:39 +0200
commit8e97cff50b77a5c381447e675ea448865aa69d74 (patch)
tree0334953d72201a7987d41d0df8d2ea9f1b06c76a /.local/bin/statusbar/volume
parent5f6c5f827e1789f27339e2f0e63d298cecb039d8 (diff)
Bug fix in PATH export, added some of Luke's scripts
Diffstat (limited to '.local/bin/statusbar/volume')
-rw-r--r--.local/bin/statusbar/volume28
1 files changed, 0 insertions, 28 deletions
diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume
deleted file mode 100644
index 61588c3..0000000
--- a/.local/bin/statusbar/volume
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-# Prints the current volume or 🔇 if muted.
-
-case $BLOCK_BUTTON in
- 1) setsid -f "$TERMINAL" -e pulsemixer ;;
- 2) pamixer -t ;;
- 4) pamixer --allow-boost -i 1 ;;
- 5) pamixer --allow-boost -d 1 ;;
- 3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
-- Middle click to mute.
-- Scroll to change." ;;
- 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
-esac
-
-[ $(pamixer --get-mute) = true ] && echo 🔇 && exit
-
-vol="$(pamixer --get-volume)"
-
-if [ "$vol" -gt "70" ]; then
- icon="🔊"
-elif [ "$vol" -lt "30" ]; then
- icon="🔈"
-else
- icon="🔉"
-fi
-
-echo "$icon$vol%"