有没有人体验过超棒的WM?如果是这样,这里有一个问题:
我有一个问题,使我的启动栏出现在状态栏。这个设置在家里的单显示器电脑上运行得很好,但在工作中,我有一个双显示器设置,我无法让它出现,nada,zilch,zipp。不能显示出来。
我有几乎相同的代码来自:https://awesome.naquadah.org/wiki/Quick_launch_bar_widget
有什么想法吗?
发布于 2011-11-09 05:34:12
到目前为止,我找到的唯一解决方案是替换代码
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
launchbar,
mypromptbox[s],
layout = awful.widget.layout.horizontal.rightleft
}
mylayoutbox[s],
...
}通过一些更古老的东西:
mainwidgets = { mylauncher, mytaglist[s] }
for i = 1, table.getn(launchbar) do table.insert(mainwidgets, launchbar[i]) end
table.insert(mainwidgets, mypromptbox[s])
mainwidgets.layout = awful.widget.layout.horizontal.rightleft
mywibox[s].widgets = {
mainwidgets,
mylayoutbox[s],
...
}但我想肯定有一个更优雅的解决方案...?
编辑
实际上,有一个更优雅的解决方案:
只需替换
...
launchbar,
...通过
...
s == 1 and launchbar or nil,
...在原始代码中,如果仅在主屏幕上具有快速启动图标就足够了
发布于 2012-06-19 01:42:45
从git/ Awesome的主版开始,这个小部件在两台显示器上都能很好地工作。如果您仍然感兴趣,可以尝试从存储库构建Awesome,并再次尝试启动栏。
https://stackoverflow.com/questions/7636700
复制相似问题