From 1d048c3caf026ef7d8f1c35d55c59d42cdf5173e Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 9 Nov 2024 17:19:20 -0600 Subject: make placement centered and prevent windows from spawning maximized --- rules.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/rules.lua b/rules.lua index 8655541..0a5af26 100644 --- a/rules.lua +++ b/rules.lua @@ -12,17 +12,18 @@ awful.rules.rules = { focus = awful.client.focus.filter, raise = true, keys = clientkeys, - buttons = clientbuttons, + buttons = client_buttons, screen = awful.screen.preferred, - placement = awful.placement.no_overlap+awful.placement.no_offscreen, + placement = awful.placement.centered+awful.placement.no_offscreen, prevent_kill = false, + maximized = false, } }, -- Warp cursor { rule_any = { class = { "Chromium-browser", - "Firefox", + "firefox", "Firefox-esr", "Gimp", "KeePassXC", @@ -48,9 +49,7 @@ awful.rules.rules = { properties = { screen = awful.screen.focused(), floating = true, - placement = awful.placement.centered, - -- tags = awful.screen.focused().selected_tags, -- For some reason, this doesn't work - callback = function(c) c:tags(awful.screen.focused().selected_tags) end -- But this does + sticky = true, } }, } -- cgit v1.2.3