mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-24 12:54:38 +02:00
tags: swap tags when the target tag is another screen
This commit is contained in:
parent
f4452eb1cd
commit
7b99cab243
1 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,14 @@ for i = 1, #tags do
|
|||
function ()
|
||||
local t = tags[i]
|
||||
if t.screen ~= mouse.screen then
|
||||
if t.selected then
|
||||
-- This tag is selected on another screen, let's swap
|
||||
local currents = awful.tag.selectedlist(mouse.screen)
|
||||
for _,current in pairs(currents) do
|
||||
sharetags.tag_move(current, t.screen)
|
||||
end
|
||||
awful.tag.viewmore(currents, t.screen)
|
||||
end
|
||||
sharetags.tag_move(t, mouse.screen)
|
||||
end
|
||||
awful.tag.viewonly(tags[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue