mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-22 18:03:28 +02:00
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.
14 lines
390 B
Lua
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"))
|