QuakeConsole: change screen only on show/hide.
This commit is contained in:
parent
f0c0b9c09c
commit
46741ec146
20
rc.lua
20
rc.lua
|
@ -315,7 +315,6 @@ local function update_quake_console_real(cli)
|
||||||
if (not cli.hidden) then
|
if (not cli.hidden) then
|
||||||
cli.floating = true
|
cli.floating = true
|
||||||
if not cli.fullscreen then cli.ontop = true end
|
if not cli.fullscreen then cli.ontop = true end
|
||||||
cli:move_to_screen(awful.screen.focused ())
|
|
||||||
cli:tags({awful.screen.focused().selected_tag})
|
cli:tags({awful.screen.focused().selected_tag})
|
||||||
cli.skip_taskbar = true
|
cli.skip_taskbar = true
|
||||||
client.focus = cli
|
client.focus = cli
|
||||||
|
@ -642,8 +641,13 @@ globalkeys = gears.table.join(
|
||||||
num = "1"
|
num = "1"
|
||||||
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
||||||
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
||||||
do c.hidden = not c.hidden; break; end
|
do
|
||||||
|
c.hidden = not c.hidden;
|
||||||
|
c:move_to_screen(awful.screen.focused ())
|
||||||
|
break;
|
||||||
|
end
|
||||||
update_quake_console(c)
|
update_quake_console(c)
|
||||||
|
if c ~= nil then c:move_to_screen(awful.screen.focused ()) end
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
awful.key({ modkey }, "-",
|
awful.key({ modkey }, "-",
|
||||||
|
@ -651,7 +655,11 @@ globalkeys = gears.table.join(
|
||||||
num = "2"
|
num = "2"
|
||||||
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
||||||
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
||||||
do c.hidden = not c.hidden; break; end
|
do
|
||||||
|
c.hidden = not c.hidden;
|
||||||
|
c:move_to_screen(awful.screen.focused ())
|
||||||
|
break;
|
||||||
|
end
|
||||||
update_quake_console(c)
|
update_quake_console(c)
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
|
@ -660,7 +668,11 @@ globalkeys = gears.table.join(
|
||||||
num = "3"
|
num = "3"
|
||||||
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
os.execute ("pgrep -O1 -f QuakeConsole"..num.." || urxvt -name QuakeConsole"..num.." -title QuakeConsole"..num.." &")
|
||||||
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
for c in awful.client.iterate(function (c) return c.instance == "QuakeConsole"..num end)
|
||||||
do c.hidden = not c.hidden; break; end
|
do
|
||||||
|
c.hidden = not c.hidden;
|
||||||
|
c:move_to_screen(awful.screen.focused ())
|
||||||
|
break;
|
||||||
|
end
|
||||||
update_quake_console(c)
|
update_quake_console(c)
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue