You are not logged in.

#1 2014-11-09 12:37:34

0x29a
Member
Registered: 2012-09-28
Posts: 101

[Partially solved] AwesomeWM - Hide borders on the fly

Hello there!

I'm looking for a way to hide 1px borders from selected ( or all ) windows on the fly, with the keystroke, just like I can hide and show statusbar with alt+b thanks to

    awful.key({ modkey }, "b", function () mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible end), 

Is there similar function for borders, or maybe some workaround?
Some win32 games that must run in windowed mode could benefit from it very much, as well as cairo-dock that runs great, except that borders are drawn around its every instance.

Thanks in advance!

Last edited by 0x29a (2014-11-13 10:28:10)

Offline

#2 2014-11-10 03:47:02

monodromy
Member
Registered: 2014-02-08
Posts: 65

Re: [Partially solved] AwesomeWM - Hide borders on the fly

This doesn't exactly answer your question, but might solve your problem: use client rules, like

   { rule = { class = "cairo-dock" },
      properties = { border_width = 0 } }

Offline

#3 2014-11-13 10:27:22

0x29a
Member
Registered: 2012-09-28
Posts: 101

Re: [Partially solved] AwesomeWM - Hide borders on the fly

Ha! Good thinking!

This worked (wmctrl save lifes!):

  properties = { below = true  }},
                { rule = { name = "cairo-dock" },
                      properties = { border_width = 0 } },
                { rule = { name = "cairo-dock-sub" },
                      properties = { border_width = 0 } },

Last edited by 0x29a (2014-11-13 10:27:40)

Offline

Board footer

Powered by FluxBB