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

[Feature Request] bindsym --no-repeat #3151

Closed
ghost opened this issue Nov 18, 2018 · 3 comments · Fixed by #5132
Closed

[Feature Request] bindsym --no-repeat #3151

ghost opened this issue Nov 18, 2018 · 3 comments · Fixed by #5132

Comments

@ghost
Copy link

ghost commented Nov 18, 2018

It would be great to disable the key-repeat of bindsym's

@ghost ghost changed the title [Feature Request] bindsym --no-key-repeat [Feature Request] bindsym --no-repeat Nov 18, 2018
@RedSoxFan
Copy link
Member

Is there a case where the --release flag is insufficient for this?

@ghost
Copy link
Author

ghost commented Dec 17, 2018

I think configs explain the situation better than I can with words.

bindsym $mod+n opacity 0.8
bindsym --release $mod+n opacity 1

This should make a window transparent on keypress and make it nontransparent on release.
When focusing another window it also becomes transparent because opacity 0.8 is repeated.

I guess --release is sufficent but it kind of depends on your liking whether you would like to execute a command on keypress or keyrelease.

lheckemann added a commit to lheckemann/sway that referenced this issue Mar 23, 2020
lheckemann added a commit to lheckemann/sway that referenced this issue Mar 23, 2020
This allows e.g. triggering one command while a key is held, then
triggering another to undo the change performed by it afterwards. One
use case for this is triggering push-to-talk functionality for VoIP
tools without granting them full access to all input events.

Fixes swaywm#3151
@lheckemann
Copy link
Contributor

I've implemented this: #5132

emersion pushed a commit that referenced this issue Mar 30, 2020
This allows e.g. triggering one command while a key is held, then
triggering another to undo the change performed by it afterwards. One
use case for this is triggering push-to-talk functionality for VoIP
tools without granting them full access to all input events.

Fixes #3151
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