diff options
| author | Mitsuo Tokumori <[email protected]> | 2024-08-29 03:31:44 +0900 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2024-08-29 03:32:26 +0900 |
| commit | f91eafebefecbe8b29e72cf650d65663ae1a45b2 (patch) | |
| tree | a5af3183a6e518e9b6d884a90fb6cab48f2d2168 /local/bin/audio_control.sh | |
| parent | a888e54f461edf2bc609e3d603a6f41d2ec27e7b (diff) | |
| download | dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.tar.gz dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.tar.bz2 dotfiles-f91eafebefecbe8b29e72cf650d65663ae1a45b2.zip | |
Fix QOF
Diffstat (limited to 'local/bin/audio_control.sh')
| -rwxr-xr-x | local/bin/audio_control.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/local/bin/audio_control.sh b/local/bin/audio_control.sh index a161690..a257120 100755 --- a/local/bin/audio_control.sh +++ b/local/bin/audio_control.sh @@ -8,6 +8,13 @@ send_signal() { pkill -RTMIN+$signal dwmblocks } +# WIP: change default sink (speaker). E.g., when connecting HDMI. +change_sink() { + pactl list sinks | grep "Name:" + # Use tab completion if set up interactively + pactl "set-default-sink alsa_output.pci-0000_05_00.6.analog-stereo" +} + case $1 in inc) pactl set-sink-volume @DEFAULT_SINK@ +$delta% ;; dec) pactl set-sink-volume @DEFAULT_SINK@ -$delta% ;; |
