---- Number Bindings ------- Tags 1-10 ---for i = 1, 10dolocal workspace_number = i
local key = tostring(i + 9)
-- Move focused client to tag 1-10
globalkeys = gears.table.join(globalkeys,
awful.key({ "Control" }, "#" .. key,
function()if client.focus thenlocal tag = client.focus.screen.tags[workspace_number]
if tag then
client.focus:move_to_tag(tag)
endendend,
{description = "move focused client to tag #"..workspace_number, group = "tag"})
)
-- View tag 1-10
globalkeys = gears.table.join(globalkeys,
awful.key({ modkey }, "#" .. key,
function()local screen = awful.screen.focused()
local tag = screen.tags[workspace_number]
if tag then
tag:view_only()
endend,
{description = "view tag #"..workspace_number, group = "tag"})
)
end--- Tags 11-20 ---for i = 11, 20dolocal workspace_number = i
local key = tostring(i - 1)
-- Move focused client to tag 11-20
globalkeys = gears.table.join(globalkeys,
awful.key({ "Control", "Shift" }, "#" .. key,
function()if client.focus thenlocal tag = client.focus.screen.tags[workspace_number]
if tag then
client.focus:move_to_tag(tag)
endendend,
{description = "move focused client to tag #"..workspace_number, group = "tag"})
)
-- View tag 11-20
globalkeys = gears.table.join(globalkeys,
awful.key({ modkey, "Shift" }, "#" .. key,
function()local screen = awful.screen.focused()
local tag = screen.tags[workspace_number]
if tag then
tag:view_only()
endend,
{description = "view tag #"..workspace_number, group = "tag"})
)
end
How do you access workspaces 11-20? 🙂
First of all, I posted my dots.
Here is the relivent config snippet:
---- Number Bindings ---- --- Tags 1-10 --- for i = 1, 10 do local workspace_number = i local key = tostring(i + 9) -- Move focused client to tag 1-10 globalkeys = gears.table.join(globalkeys, awful.key({ "Control" }, "#" .. key, function () if client.focus then local tag = client.focus.screen.tags[workspace_number] if tag then client.focus:move_to_tag(tag) end end end, {description = "move focused client to tag #"..workspace_number, group = "tag"}) ) -- View tag 1-10 globalkeys = gears.table.join(globalkeys, awful.key({ modkey }, "#" .. key, function () local screen = awful.screen.focused() local tag = screen.tags[workspace_number] if tag then tag:view_only() end end, {description = "view tag #"..workspace_number, group = "tag"}) ) end --- Tags 11-20 --- for i = 11, 20 do local workspace_number = i local key = tostring(i - 1) -- Move focused client to tag 11-20 globalkeys = gears.table.join(globalkeys, awful.key({ "Control", "Shift" }, "#" .. key, function () if client.focus then local tag = client.focus.screen.tags[workspace_number] if tag then client.focus:move_to_tag(tag) end end end, {description = "move focused client to tag #"..workspace_number, group = "tag"}) ) -- View tag 11-20 globalkeys = gears.table.join(globalkeys, awful.key({ modkey, "Shift" }, "#" .. key, function () local screen = awful.screen.focused() local tag = screen.tags[workspace_number] if tag then tag:view_only() end end, {description = "view tag #"..workspace_number, group = "tag"}) ) end
Thanks for digging that out for me and everything but this was snarky enough for me to lose interest immediately.
I know you posted your dots. I looked through your dots. It wasn’t in any order I’ve seen before and I didn’t know where to look. Sorry.
Have a good day