summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-31 09:02:08 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-31 09:02:08 +0200
commit1fee068b6b8ea609b750bca25c911e318e324b89 (patch)
tree11e2095668825ec9b4123900d40eff5e92ae5ecd
parent38a746caf5d4a4eb27863350244794fad97a8a5b (diff)
downloaddotfiles-1fee068b6b8ea609b750bca25c911e318e324b89.tar
dotfiles-1fee068b6b8ea609b750bca25c911e318e324b89.tar.zst
dotfiles-1fee068b6b8ea609b750bca25c911e318e324b89.zip
Add Multimedia Keys to Sway Config
-rw-r--r--.config/sway/config9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 3772622..ff4611c 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -82,6 +82,15 @@ workspace 3 output eDP-1
# Start your launcher
bindsym $mod+d exec $menu
+ # Pulse Audio controls
+ bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
+ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
+ bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
+ # Media player controls
+ bindsym XF86AudioPlay exec playerctl play-pause
+ bindsym XF86AudioNext exec playerctl next
+ bindsym XF86AudioPrev exec playerctl previous
+
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.