Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse F10 to F12 keys #1

Closed
FlenkerDLR opened this issue Oct 15, 2024 · 1 comment · Fixed by waycrate/swhkd#274
Closed

Unable to parse F10 to F12 keys #1

FlenkerDLR opened this issue Oct 15, 2024 · 1 comment · Fixed by waycrate/swhkd#274

Comments

@FlenkerDLR
Copy link

Hello,

i try to bind a shortcut on the F10 to F12 key but the parser is unable to parse these keys. The manual (man 5 swhkd-keys) says that these keys are also supported.

I have the following config file in ~/.config/swhkd/swhkdrc:

f12
  xterm

When I try to parse this file with ./sweet ~/.config/swhkd/swhkdrc I get the following error message:

Error: unable to parse config file

Caused by:
     --> /home/flen_ti/.config/swhkd/swhkdrc:1:3
      |
    1 | f12
      |   ^---
      |
      = expected command

Is there a workaround to also use the F10 to F12 keys for keybindings?

Best regards

@lavafroth
Copy link
Collaborator

lavafroth commented Oct 15, 2024 via email

lavafroth added a commit to lavafroth/swhkd that referenced this issue Oct 15, 2024
Fixes waycrate/sweet#1

# Changes to SWHKD
- Bumped dependency sweet to 0.4.0

# Changes to sweet
- Reorder conflicting keys in descending order to avoid greedy parsing
of shorter variants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants