From 47a2a163d65762fabc10f9c4dc3ddc8677c0985f Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sun, 27 Oct 2024 02:49:44 -0700 Subject: [PATCH] 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 --- .config/sway/config | 6 ++++-- .config/waynergy/config.ini | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 985ded9..35fb887 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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 diff --git a/.config/waynergy/config.ini b/.config/waynergy/config.ini index 4543972..335beb6 100644 --- a/.config/waynergy/config.ini +++ b/.config/waynergy/config.ini @@ -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