summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-12-01 23:24:50 +0000
committerrafa_99 <raroma09@gmail.com>2021-12-01 23:24:50 +0000
commitfff7c1323216d39ed1f7743a17fec26e0bae8f93 (patch)
tree35c540d92b44170db322bd71d46b018d6f4491c5 /scripts
parent21e370feca07886d32f499c92bf0a527443124be (diff)
Updated mixer script to use only alsa controls
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/.local/bin/mixer28
1 files changed, 4 insertions, 24 deletions
diff --git a/scripts/.local/bin/mixer b/scripts/.local/bin/mixer
index 751ce20..a4ac844 100755
--- a/scripts/.local/bin/mixer
+++ b/scripts/.local/bin/mixer
@@ -3,34 +3,14 @@
# Pulseaudio or Alsa audio binds
case $1 in
"+")
- if [ -f /usr/bin/pulsemixer ]; then
- pulsemixer --change-volume +1
- elif
- [ -f /usr/bin/amixer ]; then
- amixer set Master 1%+
- fi
+ amixer set Master 1%+
;;
"-")
- if [ -f /usr/bin/pulsemixer ]; then
- pulsemixer --change-volume -1
- elif
- [ -f /usr/bin/amixer ]; then
- amixer set Master 1%-
- fi
+ amixer set Master 1%-
;;
t)
- if [ -f /usr/bin/pulsemixer ]; then
- pulsemixer --toggle-mute
- elif
- [ -f /usr/bin/amixer ]; then
- amixer set Master toggle
- fi
+ amixer set Master toggle
;;
m)
- if [ -f /usr/bin/pacmd ]; then
- pacmd list-sources | grep -oP 'index: \d+' | awk '{ print $2 }' | xargs -I {} pactl set-source-mute {} toggle
- elif
- [ -f /usr/bin/amixer ]; then
- amixer set Capture toggle
- fi
+ amixer set Capture toggle
esac