mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-23 04:14:33 +02:00
shifty: remove unused argument from getpos()
Instead, use a generic optional `args` argument and use it to tell we don't want to spawn anything.
This commit is contained in:
parent
93f6bbc73d
commit
a8f3809a85
2 changed files with 10 additions and 19 deletions
|
@ -158,7 +158,7 @@ for i = 1, (shifty.config.maxtags or 9) do
|
|||
function ()
|
||||
local c = client.focus
|
||||
if c then
|
||||
local t = shifty.getpos(i, nil, true)
|
||||
local t = shifty.getpos(i, {nospawn = true })
|
||||
awful.client.movetotag(t, c)
|
||||
end
|
||||
end,
|
||||
|
@ -166,7 +166,7 @@ for i = 1, (shifty.config.maxtags or 9) do
|
|||
awful.key({ modkey, "Control", "Shift" }, i,
|
||||
function ()
|
||||
if client.focus then
|
||||
awful.client.toggletag(shifty.getpos(i, nil, true))
|
||||
awful.client.toggletag(shifty.getpos(i, {nospawn = true}))
|
||||
end
|
||||
end,
|
||||
i == 5 and "Toggle this tag on this window" or nil),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue