Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Doesn't work with --release keybindings #1

Open
Dlurak opened this issue Mar 12, 2024 · 1 comment
Open

Doesn't work with --release keybindings #1

Dlurak opened this issue Mar 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Dlurak
Copy link

Dlurak commented Mar 12, 2024

i3 keybindings might have a --release flag, this tool can't execute those keybindings.
Docs

Here is a example where it fails:

bindsym --release $mod+Shift+c exec xcolor -s clipboard

Here is the error message:

$ ./rofi-i3-keybinds.sh
key: unrecognized option '--release'
Usage: key [options] <keysequence> [keysequence ...]
--clearmodifiers     - clear active keyboard modifiers during keystrokes
--delay DELAY        - Use DELAY milliseconds between keystrokes
--repeat TIMES       - How many times to repeat the key sequence
--repeat-delay DELAY - DELAY milliseconds between repetitions
--window WINDOW      - send keystrokes to a specific window
Each keysequence can be any number of modifiers and keys, separated by plus (+)
  For example: alt+r

Any letter or key symbol such as Shift_L, Return, Dollar, a, space are valid,
including those not currently available on your keyboard.

If no window is given, and there are windows in the stack, %1 is used. Otherwise
the currently-focused window is used
@hexadecimalDinosaur hexadecimalDinosaur self-assigned this Mar 12, 2024
@hexadecimalDinosaur hexadecimalDinosaur added the bug Something isn't working label Mar 12, 2024
@Dlurak
Copy link
Author

Dlurak commented Apr 17, 2024

I took a look at the codebase and this would be my approach to fix this:
I would replace ^bindsym --release with bindsym . Effectively this would ignore the release option.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants