23 lines
412 B
Bash
Executable File
23 lines
412 B
Bash
Executable File
#!/bin/bash
|
|
|
|
option0="Disable DM"
|
|
option1="Enable DM"
|
|
|
|
option2="Toggle DM Capture Card"
|
|
|
|
options="$option0\n$option1\n$option2"
|
|
|
|
selected="$(echo -e "$options" | wofi -n -d -p "Direct Monitor:" || exit 0)"
|
|
|
|
case $selected in
|
|
$option0)
|
|
amixer --card=3 set 'Direct Monitor' Off;;
|
|
$option1)
|
|
amixer --card=3 set 'Direct Monitor' Stereo;;
|
|
$option2)
|
|
loopback_toggle;;
|
|
|
|
esac
|
|
|
|
exit 0
|