Switch to tag when moving to it

This commit is contained in:
Thomas Avé 2022-08-25 14:33:10 +02:00
parent 823a80d4d0
commit ab76baba31
2 changed files with 3 additions and 1 deletions

View File

@ -562,6 +562,7 @@ for i = 1, 9 do
local tag = client.focus.screen.tags[i]
if tag then
client.focus:move_to_tag(tag)
tag:view_only()
end
end
end,

View File

@ -41,7 +41,8 @@ function rules.create(clientkeys, clientbuttons)
keys = clientkeys,
buttons = clientbuttons,
screen = awful.screen.preferred,
placement = awful.placement.centered
placement = awful.placement.centered,
size_hints_honor = false
},
},
-- Floating clients.