omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Add keyd keyboard remapping for sysrq shortcut on Mac mode keyboards

Open acrogenesis opened this issue 4 months ago • 1 comments

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 keyd package from AUR
    • Creates /etc/keyd/default.conf with keyboard mappings
    • Enables and starts the keyd service
  • 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+4 at 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.conf without device-specific IDs, so it works with any keyboard.

acrogenesis avatar Aug 31 '25 00:08 acrogenesis

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)

doctorguile avatar Sep 02 '25 03:09 doctorguile

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

acrogenesis avatar Sep 08 '25 18:09 acrogenesis

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.

dhh avatar Sep 14 '25 15:09 dhh

Yeah that works too but the super key moves from the command/alt to option/windows button which feels less natural for me

acrogenesis avatar Sep 14 '25 16:09 acrogenesis