vincentbernat.i3wm-configur.../rc/quake.lua
Vincent Bernat 3b3dd0863d quake: new Quake module that handles awesome restart gracefully
The previous RC file is moved as a module. We don't rely on the fact
that the next window to be managed after spawning a new terminal will
be this terminal. Instead, we rely on terminal name to know if we need
to manage them. For each console, we have a manage hook that tries to
identify if the window to manage is the console. In this case, it is
transformed and fitted as a Quake console.

Moreover, we clean things that look like QuakeConsole but that are not
because we already have one. For example, when switching from a
two-screen setup to a single-screen setup.
2012-07-15 12:44:46 +02:00

14 lines
390 B
Lua

local quake = loadrc("quake", "vbe/quake")
local quakeconsole = {}
for s = 1, screen.count() do
quakeconsole[s] = quake({ terminal = config.terminal,
height = 0.3,
screen = s })
end
config.keys.global = awful.util.table.join(
config.keys.global,
awful.key({ modkey }, "`",
function () quakeconsole[mouse.screen]:toggle() end,
"Toggle Quake console"))