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

Disable outer gap for space with just a single window #54

Open
fmasa opened this issue Dec 14, 2023 · 6 comments
Open

Disable outer gap for space with just a single window #54

fmasa opened this issue Dec 14, 2023 · 6 comments

Comments

@fmasa
Copy link

fmasa commented Dec 14, 2023

There exists a feature called smart gaps in i3/sway that does just that.

# Enabling “Smart Gaps” means no gaps will be shown when there is
# precisely one window or split container on the workspace.
#
# inverse_outer only enables outer gaps when there is exactly one
# window or split container on the workspace.
smart_gaps on|off|inverse_outer

I prefer having gaps when I have multiple tiled windows visible as it allows me to better distinguish between them (especially for windows of the same type such as multiple terminals next to each other).

But when I only have one window open, I would like it to use all screen estate available.

@nikitabobko
Copy link
Owner

I didn't implement this feature because I couldn't wrap my head around it

If users use gaps for practical purposes to distinguish between windows then they can only use the inner gaps and set outer gaps to zero

If users use gaps for esthetic purposes then users will use both outer and inner gaps

@fmasa
Copy link
Author

fmasa commented Dec 14, 2023

That's actually a good point, I never thought about using just inner gaps. So this is probably just aesthetic thing and I would understand if you don't want to implement this. 😄

@rraafays
Copy link

id also love this functionality'

@nadavspi
Copy link

nadavspi commented Jun 9, 2024

inverse_outer does have a practical use for adding a large horizontal gap when there's only one window to "center" it. Really useful on large or ultrawide monitors.

E.g.,

gaps inner 10px
gaps horizontal 500px
smart_gaps inverse_outer

When you only have one window on a workspace, this will put 500px on both sides of it. Opening a second window will remove the horizontal gaps.

What do you think?

@nikitabobko
Copy link
Owner

smart_gaps inverse_outer makes more sense to me

Please see #60 (comment)

@nadavspi
Copy link

nadavspi commented Jun 9, 2024

smart_gaps inverse_outer makes more sense to me

Please see #60 (comment)

Ah, cool. I like window-count-range (TOML awkwardness aside). I'll keep an eye on that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants