r/awesomewm • • Jun 17 '20

smart_borders: full titlebar functionality without sacrificing space

90 Upvotes

28 comments sorted by

3

u/kolo1337 Jun 17 '20

Github: https://github.com/intrntbrn/smart_borders

Quick Install:

git clone https://github.com/intrntbrn/smart_borders ~/.config/awesome/smart_borders
echo "require('smart_borders'){ show_button_tooltips = true }" >> ~/.config/awesome/rc.lua

Let me know if there are some customization options missing.

Happy ricing!

2

u/[deleted] Jul 18 '20

Hey I recently encountered an issue, I posted it on the repo.

2

u/ringprince Jun 18 '20

Awesome! Could you post your rules/settings for the virtual keyboard?

2

u/kolo1337 Jun 18 '20

I never finished this module nor cleaned it up. It's pretty much only a test. A few keys are not yet implemented (e.g. shift; capslock works though). I added some instructions on how to set it up in the comments.

Gist

1

u/ringprince Jun 19 '20

Very nice! Thanks a lot.

2

u/LichtDesMorgensterns Jul 02 '20

Thank you so much for this! This is exactly what I was looking for!

1

u/kolo1337 Jul 03 '20

Bitte schön

1

u/pablo1107 Jun 17 '20

Curious, why do you have a shortcut for virtual keyboard?

2

u/kolo1337 Jun 18 '20

Tablet and sitting on a couch with wireless mouse only.

1

u/pablo1107 Jun 18 '20

On a 4:3 monitor? Nice couch setup tho. haha

2

u/kolo1337 Jun 18 '20

1024:768 in 2020? lol, i recorded a Xephyr session.

Xephyr :5 -screen 1024x768 & sleep 1; DISPLAY=:5 awesome&

2

u/pablo1107 Jun 18 '20

That makes sense now. hahaha

1

u/fliphopanonymous Jun 18 '20

Maybe convertible laptop?

1

u/pablo1107 Jun 18 '20

Maybe. I'm wondering what his use case.

1

u/LichtDesMorgensterns Jul 10 '20

Heya, I seem to be having trouble changing Smart Borders' colors from transparent to #ffc0cb. I've written

require("smart_borders"){

border_width = 6,

color_normal = "#ffc0cb",

color_focus = "#ffc0cb",

color_hover = "#ffc0cb"

}

in my rc.lua, but nothing has changed. Could this perhaps be conflicting with some other code that is defining the standard titlebar color?

1

u/kolo1337 Jul 10 '20

There is nothing wrong with your code. If you put it at the very bottom of your rc.lua it should overwrite any default titlebar initialization.

If it still doesn't work properly, look for titlebar code in your rc.lua and remove it. Or maybe try something like this:

awful.spawn.easy_async_with_shell("sleep 3", function()
	require("smart_borders") {border_width = 6, color_normal = "#ffc0cb", color_focus = "#ffc0cb", color_hover = "#ffc0cb"}
end)

1

u/LichtDesMorgensterns Jul 11 '20

Thank you for the reply. I did a cursory glance through my rc.lua when I was able and tried playing around with the

-- Titlebars { rule_any = { type = { "dialog", "normal" } }, properties = { titlebars_enabled = true } } }

part of the code to no avail. I will have to actually sit down and look through the code when I can, and that of my theme as well. I just wanted to thank you for your timely response.

1

u/vitto_stragedy Nov 12 '20

Hi! Could you please share your bar configuration? It looks amazing!

1

u/kolo1337 Nov 12 '20

Thank you. Unfortunately i am on a fork and highly customized configuration that's not as straight forward to share. Therefore your best bet to replicate my bar is use my fancy taglist snippet and customize it. For custom icons check out my icon_customizer module. The rest is just basic icon widgets.

1

u/vitto_stragedy Nov 12 '20

No problem, thank you!

1

u/MultipleAnimals Jun 17 '20

nicely done! i may have to copy that client menu of yours to my config

1

u/[deleted] Apr 12 '22

I love you.

0

u/[deleted] Jun 17 '20

[deleted]

3

u/kolo1337 Jun 17 '20

I can post a minimal implementation tomorrow.

In short: you have to create a custom taglist widget and add a tasklist for each tag. For every tasklist you have to create a custom filter based on tag index. You can get the tag index by adding a create_callback handler.

1

u/willpower3309 Jun 18 '20

Please do, I'm also interested!

1

u/kolo1337 Jun 18 '20 edited Jun 18 '20

Will do but can't make it today. Nvm, here it is: Gist

2

u/kolo1337 Jun 18 '20

I uploaded a minimal implementation: Gist.

0

u/[deleted] Jun 18 '20

[deleted]

2

u/kolo1337 Jun 18 '20 edited Jun 19 '20

I am glad you like it. I am going to upload another module icon_customizer tomorrow that lets you set custom icons for client classes and even for terminal applications.

It will be very easy to setup and supports regular expressions.