implemented global mue button
This commit is contained in:
12
.local/share/scripts/toggle-mute.sh
Executable file
12
.local/share/scripts/toggle-mute.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# index=$(pacmd list-sources | grep -oP '\* index: \d+' | awk '{ print $3 }')
|
||||
|
||||
# TODO default source not hardcoded
|
||||
# pactl set-source-mute $index toggle
|
||||
|
||||
|
||||
# Use the alsa approach
|
||||
|
||||
amixer -q -D pulse set Capture toggle
|
||||
|
||||
Reference in New Issue
Block a user