История изменений
Исправление Worron, (текущая версия) :
Пробуй
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
local num = { tag = 3, monitor = 2 }
local tag
if i <= num.tag then
local screen = mouse.screen
tag = awful.tag.gettags(screen)[i]
else
local screen = mouse.screen % num.monitor + 1
tag = awful.tag.gettags(screen)[i - num.tag]
end
if tag then awful.tag.viewonly(tag) end
end),
...
Исходная версия Worron, :
Пробуй
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do
globalkeys = awful.util.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
local num = { tag = 3, monitor = 2 }
local screen, tag
if i <= num.tag then
screen = mouse.screen
tag = awful.tag.gettags(screen)[i]
else
screen = mouse.screen % num.monitor + 1
tag = awful.tag.gettags(screen)[i - num.tag]
end
if tag then awful.tag.viewonly(tag) end
end),
...