summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2020-07-23 21:24:21 -0500
committerBobby Bingham <koorogi@koorogi.info>2021-02-06 10:40:49 -0600
commitc7ffac17e7e5dd3c7de5ee91ecaee85bb4c6a4f2 (patch)
tree013d3d0124854ad3f094e2a78ad777e4398f0df6 /desktop
parentbe01473aa004413a4379b89f589992baae14084a (diff)
desktop: audio volume keys
Diffstat (limited to 'desktop')
-rw-r--r--desktop/.config/i3/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/.config/i3/config b/desktop/.config/i3/config
index 0cdc6df..cfbdb3c 100644
--- a/desktop/.config/i3/config
+++ b/desktop/.config/i3/config
@@ -8,6 +8,12 @@ set $mod Mod4
# is used in the bar {} block below.
font pango:monospace 12
+# Use pactl to adjust volume in PulseAudio.
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
+bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod