bling icon indicating copy to clipboard operation
bling copied to clipboard

Scratchpad-specific keybindings

Open cbr9 opened this issue 2 years ago • 3 comments

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?

cbr9 avatar Sep 11 '23 19:09 cbr9

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

Nooo37 avatar Sep 12 '23 12:09 Nooo37

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

cbr9 avatar Sep 14 '23 08:09 cbr9

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?

Nooo37 avatar Sep 17 '23 16:09 Nooo37