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

Can I put time widget in the center of panel? #2426

Closed
ghost opened this issue Oct 12, 2018 · 1 comment
Closed

Can I put time widget in the center of panel? #2426

ghost opened this issue Oct 12, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 12, 2018

I want to set position of time widget to center. And I want to make it absolute, like in Gnome 3. For example, i press Win+R and input program name, my clock widget will not move from it's absolute position.

@Elv13
Copy link
Member

Elv13 commented Oct 12, 2018

Yes, something like this untested code:

s.mywibox:setup {
    layout = wibox.layout.stack,
    {
        layout = wibox.layout.align.horizontal,
        { -- Left widgets
            layout = wibox.layout.fixed.horizontal,
            mylauncher,
            s.mytaglist,
            s.mypromptbox,
        },
        nil,
        { -- Right widgets
            layout = wibox.layout.fixed.horizontal,
            mykeyboardlayout,
            wibox.widget.systray(),
            s.mylayoutbox,
        },
    },
    {
        mytextclock,
        valign = "center",
        halign = "center",
        layout = wibox.container.place
    }
}

edit: typo in "container"

@ghost ghost closed this as completed Oct 12, 2018
russmatney added a commit to russmatney/clawe that referenced this issue Jan 17, 2021
This took a bit, but fortunately found the trivia:
layout.container.place
awesomeWM/awesome#2426

Starting to wrap my head around this awm layout system.
This issue was closed.
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

1 participant