Skip to content

Conversation

acrogenesis
Copy link

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.

@Copilot Copilot AI review requested due to automatic review settings August 31, 2025 00:03
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the keyd keyboard remapping daemon to fix print screen functionality on Mac-style keyboards (like the Keychron K3) by mapping the Mac-specific leftmeta+leftshift+4 key combination to the sysrq key.

  • Introduces a hardware configuration script to install and configure keyd
  • Adds a migration script for automatic setup during system migrations
  • Uses a universal configuration that works with any keyboard without device-specific IDs

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
migrations/1756583646.sh Migration script that sources the keyd hardware configuration for automatic setup
install/config/hardware/keyd.sh Hardware configuration script that installs keyd, creates configuration file, and enables the service

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@doctorguile
Copy link

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)

@acrogenesis
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants