Add single-key support for screenshot and mute

- Add printscreen and scroll_lock as keys for screenshot and mic_mute
- Add waynergy config support for rewriting the printscreen keycode to
the code evdev xkb map expects
This commit is contained in:
Trysdyn Black 2024-10-27 02:49:44 -07:00
parent aea72b2250
commit 47a2a163d6
2 changed files with 5 additions and 2 deletions

View file

@ -38,13 +38,15 @@ bar swaybar_command waybar
# start a terminal
bindsym $mod+Return exec x-terminal-emulator
# screenshot on win+shift+s
# screenshot on win+shift+s and printscreen
bindsym Print exec "~/bin/screenshot"
bindsym $mod+Shift+s exec "~/bin/screenshot"
# open the front door camera on win+shift+f
bindsym $mod+Shift+f exec "~/bin/view_frontdoor"
# mic mute toggle
# mic mute toggle on win+shift+m and ScrollLock
bindsym Scroll_Lock exec "~/bin/mic_mute"
bindsym $mod+Shift+m exec "~/bin/mic_mute"
# kill focused window

View file

@ -33,6 +33,7 @@ offset_on_explicit = false
347 = 133 #WIN
312 = 108 #RALT
349 = 135 #MENU
311 = 218 #PRINT
284 = 104 #KPEN
325 = 77 #NMLK