aboutsummaryrefslogtreecommitdiff
path: root/scripts/volume_indicator_deadd
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-22 17:08:11 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-11-22 17:08:11 +0530
commit026b290aa60d01b28da56abc2d19f92d914c4361 (patch)
tree44204c73641f772fb4386e6ff01f2a20fe3860c3 /scripts/volume_indicator_deadd
parenta17a692c0abe5bfa6365be41129088fae87a0125 (diff)
added mangasort script to satisfy my weebshit needs
Diffstat (limited to 'scripts/volume_indicator_deadd')
-rwxr-xr-xscripts/volume_indicator_deadd35
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/volume_indicator_deadd b/scripts/volume_indicator_deadd
deleted file mode 100755
index 3f23df24..00000000
--- a/scripts/volume_indicator_deadd
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-if [ "$1" == "inc" ]; then
- amixer -q sset Master 5%+
-fi
-
-if [ "$1" == "dec" ]; then
- amixer -q sset Master 5%-
-fi
-
-if [ "$1" == "mute" ]; then
- amixer -q sset Master toggle
-fi
-
-
-AMIXER=$(amixer sget Master)
-VOLUME=$(echo $AMIXER | grep 'Right:' | awk -F'[][]' '{ print $2 }' | tr -d "%")
-MUTE=$(echo $AMIXER | grep -o '\[off\]' | tail -n 1)
-if [ "$VOLUME" -le 20 ]; then
- ICON=audio-volume-low
-else if [ "$VOLUME" -le 60 ]; then
- ICON=audio-volume-medium
- else
- ICON=audio-volume-high
- fi
-fi
-if [ "$MUTE" == "[off]" ]; then
- ICON=audio-volume-muted
-fi
-
-
-
-NOTI_ID=$(notify-send.py "Lautstärke" "$VOLUME/100" \
- --hint string:image-path:$ICON boolean:transient:true \
- --replaces-process "volume-popup")