From 31f4f75c5a6e8da3c38699354211fab0050d0c0c Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sun, 24 Jan 2021 05:55:21 -0800 Subject: [PATCH] addtional keyboard mappings for media and wifi --- .config/sway/config | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 80bc89a..cfd24e9 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -206,14 +206,30 @@ bindsym Scroll_Lock exec "$lock -f" bindsym $mod+Scroll_Lock exec /home/thrrgilag/bin/noidle bindsym $mod+Mod1+Scroll_Lock exec /home/thrrgilag/bin/idle +# screen controls +bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ + # screenshots bindsym Print exec grim ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png bindsym $mod+Print exec grim -g "$(slurp)" ~/screenshots/$(date +%Y-%m-%d_%H-%m-%s).png -# media +# volume controls +bindsym --locked XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle +bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% +bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym --locked XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle + +# media controls +bindsym --locked XF86AudioNext exec playerctl next +bindsym --locked XF86AudioPlay exec playerctl play-pause +bindsym --locked XF86AudioPrev exec playerctl previous +bindsym --locked XF86AudioStop exec playerctl stop bindsym --locked Pause exec playerctl play-pause -#bindsym $mod+Mod1+n exec playerctl next -#bindsym $mod+Mod1+p exec playerctl previous + +# wifi control +bindsym $mod+F9 exec nmcli connection up wlp2s0 +bindsym $mod+Mod1+F9 exec nmcli connection down wlp2s0 # # Status Bar: