如何创建“容器”我可以在哪里放置多个小部件?
我想在容器中放置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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
API文档在
wibox.container
和wibox.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
andwibox.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