You are not logged in.

#1 2015-03-14 09:31:48

Nesousx
Member
Registered: 2012-03-27
Posts: 46
Website

[Solved] Awesome - Lain and useless borders

Hello all,

I am new to Awesome, and really love it so far.

I have created my first config thanks to: https://github.com/copycat-killer/awesome-copycats (using theme Multicolor, see https://github.com/copycat-killer/aweso … multicolor for rc.lua conf file).

The thing I love with Lain is the useless gaps feature (I believe it is what it's called). When I first loaded my theme, I had noticeable gaps between my windows and I loved it. Now that I have played a few with the layout and arranged my windows, I no longer have gaps.

Do you have any idea how I could get those little gaps permanently (like in bspwm)?

Thanks in advance

PS : I tried c.size_hints_honor = true, but this isn't what I am looking for. Gaps are to small.

Last edited by Nesousx (2015-03-14 17:13:20)

Offline

#2 2015-03-14 15:29:22

nullified
Member
From: Massachusetts, USA
Registered: 2013-12-09
Posts: 468

Re: [Solved] Awesome - Lain and useless borders

It's hard to tell what happened in your case without having your rc.lua or theme.lua, but in general here's how they work:

All of lain layouts provide useless gaps. To set the width of the gaps, you have to add an item called useless_gap_width in your theme.lua. If it doesn't exist, the width will default to 0.

Read more here in the lain wiki: https://github.com/copycat-killer/lain/wiki/Layouts. Check it out in action in another theme from copycats, the blackburn theme: https://github.com/copycat-killer/aweso … /theme.lua

So perhaps you switched to a theme or layout without gaps. If they are too small, just change the size in your theme.lua.

Also, here is a code snippet to place in the keybindings section of your rc.lua that will enable you to change the size of the gaps whenever, as long as you're using lain:

-- On the fly useless gaps change
    awful.key({ altkey, "Control" }, "+", function () lain.util.useless_gaps_resize( 1) end),
    awful.key({ altkey, "Control" }, "-", function () lain.util.useless_gaps_resize(-1) end),

Just make sure those keys aren't already mapped to something else.

Last edited by nullified (2015-03-14 15:30:32)


"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace

Offline

#3 2015-03-14 17:08:50

Nesousx
Member
Registered: 2012-03-27
Posts: 46
Website

Re: [Solved] Awesome - Lain and useless borders

Thanks a lot for your awesome answer nullified. This is exactly what I was looking for and failed to find by myself.

Offline

Board footer

Powered by FluxBB