Add keyd keyboard remapping for sysrq shortcut on Mac mode keyboards
This PR adds support for the keyd keyboard remapping daemon to fix print screen functionality on Mac mode keyboards by mapping leftmeta+leftshift+4 to the sysrq key.
You can still use left super + left shift + 4 to move a window to the 4th workspace.
Changes Made
New Files:
-
keyd.sh - Hardware configuration script that:
- Installs the
keydpackage from AUR - Creates
/etc/keyd/default.confwith keyboard mappings - Enables and starts the keyd service
- Installs the
-
1756583646.sh - Migration script that sources the hardware config for automatic setup
Why This Change?
- Mac Mode Keyboards: Many Mac-style keyboards like my Keychron K3 send
leftmeta+leftshift+4at the firmware level to simulate a print screen for mac instead of the button being mapped to a true print screen. - Universal Compatibility: Uses
default.confwithout device-specific IDs, so it works with any keyboard.
keyd is powerful but to achieve what you want i think its more straight forward to just add this to
~/.config/hypr/bindings.conf
bindd = SUPER ALT SHIFT, 4, Screenshot of region, exec, omarchy-cmd-screenshot
Although I appreciate your post as I was trying to find a way to enable sticky shift key
keyd + the following config did the trick for me
shift = oneshot(shift)
Hi @doctorguile, I recently changed keyboards to the flow84 and tried your proposed method and it doesn't work. I believe it has something to do with how the keyboards send the keypress automatically.
In the new commit 75cdeff I added leftmeta+leftshift+3 = sysrq which covers this keyboard "mac" print screen
If you're on the Flow84, you just need to hit FN + N to be in Windows mode. I'm almost certain that this is possible with all the Keychrons too.
Yeah that works too but the super key moves from the command/alt to option/windows button which feels less natural for me