You are not logged in.

#1 2020-03-30 11:26:02

arch_noob82
Member
Registered: 2020-03-28
Posts: 9

Vertical Title Bars in Awesome Window Manager

Is it possible to have the title bar for windows appear vertically running up and down the left side of a window in awesome window manger?

Offline

#2 2020-03-31 00:58:31

Wibjarm
Member
Registered: 2012-05-04
Posts: 43

Re: Vertical Title Bars in Awesome Window Manager

I was a little bit curious about this, and it turns out that you absolutely can.  You just need to change the call to awful.titlebar() in the request::titlebars signal handler like so:

    awful.titlebar(c, { position = "left" }) : setup {
        { -- Left
            awful.titlebar.widget.iconwidget(c),
            buttons = buttons,
            layout  = wibox.layout.fixed.vertical
        },
        { -- Middle
           { -- Rotate title text
            { -- Title text
                align  = "center",
                widget = awful.titlebar.widget.titlewidget(c)
            },
            buttons = buttons,
            layout  = wibox.layout.flex.vertical
            },
           widget = wibox.container.rotate,
           direction = "east",
        },
        { -- Right
            awful.titlebar.widget.floatingbutton (c),
            awful.titlebar.widget.maximizedbutton(c),
            awful.titlebar.widget.stickybutton   (c),
            awful.titlebar.widget.ontopbutton    (c),
            awful.titlebar.widget.closebutton    (c),
            layout = wibox.layout.fixed.vertical()
        },
        layout = wibox.layout.align.vertical
    }

Pretty much just explicitly setting the position of the titlebar, changing the layouts to arrange things vertically rather than horizontally, and putting in a rotate container so the title text runs vertically rather than getting wrapped at one character wide.

Offline

#3 2020-04-01 09:36:40

arch_noob82
Member
Registered: 2020-03-28
Posts: 9

Re: Vertical Title Bars in Awesome Window Manager

Thanks for this Wibjarm. Can I ask how you figured this out? Did you just read the docs or do you look at the source code to see how the LUA scripts are setup?

Offline

#4 2020-04-01 17:00:23

Wibjarm
Member
Registered: 2012-05-04
Posts: 43

Re: Vertical Title Bars in Awesome Window Manager

I looked through the stock rc.lua (it's in /etc/xdg/awesome if you need it) to see how the titlebars are set up, then checked the docs for awful.titlebar to see if there was any kind of "direction" or "position" argument.  The docs for awesome's lua API are really pretty nice most of the time.

Offline

Board footer

Powered by FluxBB