BlingCorp / bling

Utilities for the awesome window manager
https://blingcorp.github.io/bling/
MIT License
851 stars 51 forks source link

Scratchpad-specific keybindings #217

Open cbr9 opened 1 year ago

cbr9 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Nooo37 commented 1 year ago

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?