dotfiles-remastered/.local/share/scripts/toggle-mute.sh

15 lines
313 B
Bash
Raw Normal View History

2021-01-17 16:33:10 +00:00
#!/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
2022-05-29 17:07:06 +00:00
# amixer -q -D pulse set Capture toggle
pactl set-source-mute alsa_input.pci-0000_28_00.3.analog-stereo toggle
2021-01-17 16:33:10 +00:00