Looks like my last post got lost.

Assuming you're editing a layout file, the easiest way to bind a command to 
a key binding is to create a method whose names starts with the "cmd_" 
prefix (e.g. "cmd_increase_gaps"). You can then call the function in a 
keybinding with "lazy.layout.increase_gaps()". 

On Tuesday, 28 September 2021 at 20:40:51 UTC+1 [email protected] wrote:

> I can help out with the keybinding (or at least give some guidance for 
> it). How are you proposing to adjust the gap size?
>
> On Saturday, September 25, 2021 at 9:11:25 AM UTC-6 [email protected] 
> wrote:
>
>> Can we dynamically adjust gaps once the Layout object has been 
>> instantiated ? I'd love to assign a keybinding to toggle/increase/decrease 
>> gaps of the layout
>>
>> Where can I get started ? I have a vague idea where I think I need to 
>> implement a function that toggles/increases/decreases the "margin" of the 
>> layout, but not sure how to link that to a keybinding
>>
>> Also not sure if dynamically changing the margin attribute does anything 
>> at all
>>
>> Regards
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/7b7fb2a2-5fdc-4ef0-8bb7-d55f0fbbfd34n%40googlegroups.com.

Reply via email to