summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2018-07-22 18:01:27 -0400
committerAmin Bandali <amin@aminb.org>2018-07-22 18:01:27 -0400
commit8e4862e25a3d7f359895eb36a23476e131364cb0 (patch)
tree90a329882c58aaba6293cd6be418516057d00130
parentbb93c9e100723ad7b5311a35f600adb856456f85 (diff)
downloadconfigs-8e4862e25a3d7f359895eb36a23476e131364cb0.tar.gz
configs-8e4862e25a3d7f359895eb36a23476e131364cb0.tar.xz
configs-8e4862e25a3d7f359895eb36a23476e131364cb0.zip
[rc/sway] add volume key bindings
depends: pactl (from pulseaudio) pamixer
Diffstat (limited to '')
-rw-r--r--rc.org5
1 files changed, 5 insertions, 0 deletions
diff --git a/rc.org b/rc.org
index 20bb8bd..bad5252 100644
--- a/rc.org
+++ b/rc.org
@@ -3749,6 +3749,11 @@ input "1:1:AT_Translated_Set_2_keyboard" {
bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
+ bindsym XF86AudioRaiseVolume exec pamixer --allow-boost --increase 5
+ bindsym XF86AudioLowerVolume exec pamixer --allow-boost --decrease 5
+ bindsym XF86AudioMute exec pamixer --toggle-mute
+ bindsym XF86AudioMicMute exec pactl set-source-mute 1 toggle
+
# bspwm-esque workspace switch and window move
bindsym $mod+bracketleft exec sway-ws-util switch prev
bindsym $mod+bracketright exec sway-ws-util switch next