#! /bin/sh
- pactl set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo 1 &&
+default_sink=`cat "$HOME"/.config/pulse/default`
+default_source=`echo $default_sink | sed s/output/input/`
+
+ pactl set-source-mute $default_source 1 &&
exec pactl set-card-profile 0 output:analog-stereo
#! /bin/sh
- pactl set-card-profile 0 output:analog-stereo+input:analog-stereo &&
+default_sink=`cat "$HOME"/.config/pulse/default`
+default_source=`echo $default_sink | sed s/output/input/`
+
+ pactl set-card-profile 0 $default_source &&
exec pactl set-source-mute alsa_input.pci-0000_00_1b.0.analog-stereo 0