8000 On the fly gaps/margins · qtile qtile · Discussion #2375 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

On the fly gaps/margins #2375

Answered by m-col
Barbaross93 asked this question in Q&A
Apr 10, 2021 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

I think you can modify gap.size directly.

Let's say you want to bind a key to increase the gap sizes by 10 pixels, you can change gap.size values for the current screen, and then probably just reconfigure the group with group.layout_all:

from libqtile import lazy

@lazy.function
def increase_gaps(qtile):
    for gap in qtile.current_screen.gaps:
        gap.size += 10
    qtile.current_group.layout_all()

Then bind that function you do other lazy things.

NB untested! But maybe this works?

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Barbaross93
Comment options

@m-col
Comment options

@Barbaross93
Comment options

@m-col
Comment options

@Barbaross93
Comment options

Answer selected by Barbaross93
Comment options

You must be logged in to vote
1 reply
@m-col
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0