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

Scratchpad-specific keybindings #217

Open
cbr9 opened this issue Sep 11, 2023 · 3 comments
Open

Scratchpad-specific keybindings #217

cbr9 opened this issue Sep 11, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@cbr9
Copy link

cbr9 commented Sep 11, 2023

I'd like to override my global super+q (kill) binding, so that on scratchpads it simply turns it off, but I'm an unable to do it.

Any idea?

@Nooo37 Nooo37 added the help wanted Extra attention is needed label Sep 12, 2023
@Nooo37
Copy link
Member

Nooo37 commented Sep 12, 2023

Something like if client.focus == myscratchpadobj.client then myscratchpadobj:turn_off() end maybe? But you would have to do that with every scratchpad instance you got

@cbr9
Copy link
Author

cbr9 commented Sep 14, 2023

Is there any way to set a custom property to all scratchpads, so I can use that in the if condition?

@Nooo37
Copy link
Member

Nooo37 commented Sep 17, 2023

You can add abitrary properties to scratchpad objects as they are just basic lua tables. Did the previous answer work for you for one scratchpad?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants