我如何在 Awesome WM 4.0 中显示多个标签上的应用程序?
How can I show an application on multiple tags in Awesome WM 4.0?
我曾经在 Awesome WM 3.5 中使用这样的规则:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
callback = function (c)
c:tags({
tags[1][1],
tags[1][2],
tags[1][3],
tags[1][4],
tags[1][5]
})
end
},
在所有标签上显示此应用程序,但这不再有效。我环顾四周,但没有找到展示其他人在 4.0 版中使用他们的 rc.lua 配置文件所做的事情的好地方。
我试过这个:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
callback = function (c)
local s = awful.screen.focused()
c:tags({
s.tags[1],
s.tags[2],
s.tags[3],
s.tags[4],
s.tags[5]
})
end
},
在 awesome.restart 上运行良好,但在下次重新启动后,我的 wibar 上到处都是乱码图标图像,尤其是在标签区域。当我注释掉新规则时,它就消失了。
the next reboot I ended up with garbled icon images all over my wibar particularly in the tags region
这通常是某些图形驱动程序的错误。 X11 中有一个改进它的修复程序,但它太新了,还不能安装在您的计算机上。您可以 运行 太棒了 --no-argb
或使用 compton
来缓解这个问题。
您的代码应该可以工作,但是 4.0+ 有一个更简单的版本:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
screen = awful.screen.focused,
tags = { "1", "2", "3", "4", "5" }
},
这是假设标签名称是数字,根据您的需要进行更改。
我曾经在 Awesome WM 3.5 中使用这样的规则:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
callback = function (c)
c:tags({
tags[1][1],
tags[1][2],
tags[1][3],
tags[1][4],
tags[1][5]
})
end
},
在所有标签上显示此应用程序,但这不再有效。我环顾四周,但没有找到展示其他人在 4.0 版中使用他们的 rc.lua 配置文件所做的事情的好地方。
我试过这个:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
callback = function (c)
local s = awful.screen.focused()
c:tags({
s.tags[1],
s.tags[2],
s.tags[3],
s.tags[4],
s.tags[5]
})
end
},
在 awesome.restart 上运行良好,但在下次重新启动后,我的 wibar 上到处都是乱码图标图像,尤其是在标签区域。当我注释掉新规则时,它就消失了。
the next reboot I ended up with garbled icon images all over my wibar particularly in the tags region
这通常是某些图形驱动程序的错误。 X11 中有一个改进它的修复程序,但它太新了,还不能安装在您的计算机上。您可以 运行 太棒了 --no-argb
或使用 compton
来缓解这个问题。
您的代码应该可以工作,但是 4.0+ 有一个更简单的版本:
{
rule = { class = "wm_kybrd_fcns.py" },
properties = { floating = true },
screen = awful.screen.focused,
tags = { "1", "2", "3", "4", "5" }
},
这是假设标签名称是数字,根据您的需要进行更改。