mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-27 03:58:51 +02:00
tags: handle correctly tag toggling
When the tag is on another screen, move it, then toggle it if not already selected. Otherwise, just toggle it.
This commit is contained in:
parent
7b99cab243
commit
33eb322235
1 changed files with 10 additions and 2 deletions
12
rc/tags.lua
12
rc/tags.lua
|
@ -42,8 +42,16 @@ for i = 1, #tags do
|
|||
end),
|
||||
awful.key({ modkey, "Control" }, "#" .. i + 9,
|
||||
function ()
|
||||
if tags[i] then
|
||||
awful.tag.viewtoggle(tags[i])
|
||||
local t = tags[i]
|
||||
if t then
|
||||
if t.screen ~= mouse.screen then
|
||||
sharetags.tag_move(t, mouse.screen)
|
||||
if not t.selected then
|
||||
awful.tag.viewtoggle(t)
|
||||
end
|
||||
else
|
||||
awful.tag.viewtoggle(t)
|
||||
end
|
||||
end
|
||||
end),
|
||||
awful.key({ modkey, "Shift" }, "#" .. i + 9,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue