Skip to content

Conversation

@brunoorsolon
Copy link
Contributor

Description

Adds an extra parsing to the Keybindings script, making some of the keys more readable and allowing "mod only" shortcuts to be properly represented/

Changes

  • Improved
  • Bug Fixes
  • Feature
  • Documentation
  • Other

Context

I use SUPER alone as the Keybind to open the app launcher in my local system.
To achieve that, you need to declare it like this:
bindr = $mainMod, $mainMod_L, exec, $HYPRSCRIPTS/launcher.sh # Open application launcher

This breaks the original keybindings window script as it can't parse "bindr" and even if it could, it would result in SUPER + SUPER_L as the "key"

The improved version handles those cases and also makes some of the keys more human readable (like common FN keys that are currently named XF86_*)

How Has This Been Tested?

  • Tested on Arch Linux/Based Distro.
  • Tested on Fedora Linux/Based Distro.
  • Tested on openSuse.

Checklist

Please ensure your pull request meets the following requirements:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes do not introduce new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have made corresponding changes to the documentation
  • New and existing unit tests pass locally with my changes.

Screenshots

image

Related Issues

N/A

Additional Notes

hyprwm/Hyprland#2506

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.

1 participant