aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-01-10 11:44:08 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:45 -0600
commit6c9b9c8ef89f250ce03ffdb6baa0a8ffa966beac (patch)
tree5afac5731685741116a4eb2da352d79dbcea6f8f /src
parent4acf25fc6f3b2ad5c1a18600efb11ff65115990e (diff)
downloadrde-6c9b9c8ef89f250ce03ffdb6baa0a8ffa966beac.tar.gz
rde-6c9b9c8ef89f250ce03ffdb6baa0a8ffa966beac.tar.bz2
rde-6c9b9c8ef89f250ce03ffdb6baa0a8ffa966beac.zip
Add script to set the PulseAudio sink for the current window.
This binding is set to <C-z>a. It creates a dmenu prompting the user to select which output device the current application should send audio to. In the future I might create an analog for input devices, but as things stand, I change input so much more infrequently that pavucontrol is probably fine for that.
Diffstat (limited to 'src')
-rw-r--r--src/Internal/Keys.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Internal/Keys.hs b/src/Internal/Keys.hs
index 44a7c9f..fc0244b 100644
--- a/src/Internal/Keys.hs
+++ b/src/Internal/Keys.hs
@@ -233,6 +233,9 @@ keymap = runKeys $ do
bind xK_e $
(justMod -|- noMod) $ spawn "emoji-select.sh"
+
+ bind xK_a $
+ (justMod -|- noMod) $ spawn "set-sink.sh"
-- Double-tap Z to toggle zoom.