From f3d0ca0ec9f59043f0a98ce7243fd52107f8a300 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 29 Dec 2022 05:37:43 +0100 Subject: Updated awesome config to spawn new window at the bottom of layout instead of master --- config/awesome/rc.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index 083343c..8b401a2 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -355,3 +355,16 @@ awful.rules.rules = { client.connect_signal("focus", function (c) c.border_color = beautiful.border_focus end) client.connect_signal("unfocus", function (c) c.border_color = beautiful.border_normal end) + +client.connect_signal("manage", function (c) + -- Set the windows at the slave, + -- i.e. put it at the end of others instead of setting it master. + if not awesome.startup then awful.client.setslave(c) end + + if awesome.startup + and not c.size_hints.user_position + and not c.size_hints.program_position then + -- Prevent clients from being unreachable after screen count changes. + awful.placement.no_offscreen(c) + end +end) -- cgit