From 54b132728c003c5d1a5378d5eba12b00685a77a7 Mon Sep 17 00:00:00 2001 From: backbone Date: Wed, 26 Jan 2022 00:14:45 +0300 Subject: [PATCH] QuakeConsole: apply position/size on start only. --- rc.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rc.lua b/rc.lua index 61bd22e..8d19b73 100644 --- a/rc.lua +++ b/rc.lua @@ -327,10 +327,6 @@ local function update_quake_console(cli) cli.border_width = 0 else cli.border_width = 2 - cli.width=awful.screen.focused().workarea.width * 0.96 - cli.height=awful.screen.focused().workarea.height * 0.7 - cli.x = awful.screen.focused().workarea.width * 0.02 - cli.y = awful.screen.focused().workarea.height * 0.3 + mywibox_height end cli.ontop = true cli:move_to_screen(awful.screen.focused ()) @@ -784,6 +780,14 @@ awful.rules.rules = { }, properties = { titlebars_enabled = true; border_width = 2; } }, + { rule = { name = "QuakeConsole" }, + properties = { + width=awful.screen.focused().workarea.width * 0.96, + height=awful.screen.focused().workarea.height * 0.3, + x = awful.screen.focused().workarea.width * 0.02, + y = awful.screen.focused().workarea.height * 0.7 + mywibox_height + } + }, -- { rule = { class = "URxvt" }, -- properties = { tag = "2" } }, -- { rule = { class = "Firefox" },