如何在 awesome wm 中使用 0 作为工作区的标识符?

如何在 awesome wm 中使用 0 作为工作区的标识符?

是否可以将其用作0awesome wm 中工作区的标识符?默认情况下,它仅允许使用 1 到 9 的数字。我想像切换到其他工作区一样切换到工作区(例如mod+ 0)。理想情况下,它会被添加到第 9 个工作区之后,而不是附加到前面。

答案1

假设你来自默认 rc.lua在其中搜索类似的内容并让 for 循环运行直到 10 而不是 9。

-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it work on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do

您已设置了键绑定,现在创建一个附加标签。您可以在某个地方找到类似的东西。在列表中添加一个“0”。

awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9"}, s, awful.layout.layouts[1])

相关内容