如何创建“容器”我可以在哪里放置多个小部件?

发布于 2025-01-25 19:25:00 字数 143 浏览 0 评论 0原文

我想在容器中放置TextClock,Systray和Semperator小部件。 然后,我会将该容器放在我的Topbar上,并创建键以显示/隐藏容器。

但是,我不确定如何制作容器。我找到了有用的示例来创建我需要的小部件,但我不确定将它们全部放在容器小部件中。

I have textclock, systray and seperator widgets I would like to place in a container.
Then, I will put that container on my topbar and create keys to show/hide the container..

But being new to this I'm not sure how to make the container. I found helpful examples to create the widgets I needed as I wanted them, but I'm not sure about putting them all in a container widget.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2025-02-01 19:25:00

API文档在wibox.containerwibox.layout下有几个元素: https://awsomewm.org/doc/api/

在AwesomeWm中,“容器”仅包含一个其他小部件。您想要一个布局。

最有可能的是,您需要一个固定的布局,这是一个布局,仅将小部件彼此放置: https://awsomewm.org/doc/api/classes/wibox.layout.fixed.html

The API documentation has a couple of elements under wibox.container and wibox.layout: https://awesomewm.org/doc/api/

In AWesomeWM, a "container" is something that contains just a single other widget. You want a layout.

Most likely, you want a fixed layout, which is a layout that just puts the widgets next to each other: https://awesomewm.org/doc/api/classes/wibox.layout.fixed.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文