From c70491f8db93eef4921a30e1953d24935237e917 Mon Sep 17 00:00:00 2001 From: ry Date: Thu, 3 Mar 2022 14:05:20 -0800 Subject: [PATCH] added some non-media-button keyboard binds --- .config/sway/config | 5 +++++ desktop.org | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/sway/config b/.config/sway/config index 690a827..e229c3e 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -40,6 +40,11 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +## Volume for non-media button keyboards +bindsym $mod+Shift+n exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym $mod+Shift+b exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym $mod+Shift+m exec pactl set-sink-mute @DEFAULT_SINK@ toggle + # Media playerctl bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous diff --git a/desktop.org b/desktop.org index 6de85cb..d88ded5 100644 --- a/desktop.org +++ b/desktop.org @@ -54,6 +54,11 @@ bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +## Volume for non-media button keyboards +bindsym $mod+Shift+n exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym $mod+Shift+b exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym $mod+Shift+m exec pactl set-sink-mute @DEFAULT_SINK@ toggle + # Media playerctl bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous @@ -165,7 +170,7 @@ bindsym $mod+Ctrl+g exec grimshot save window # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t custom -m 'Do you wish to fully reload your Sway session?' -b 'Yes' 'swaymsg exit' # Turn the system off -bindsym $mod+Shift+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend' +bindsym $mod+p exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend' #+end_src ** Autostart #+begin_src shell :tangle ~/dotfiles/.config/sway/config :mkdirp yes