aboutsummaryrefslogtreecommitdiff
path: root/config/awesome/rc.lua
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2022-12-29 05:37:43 +0100
committerCharles Cabergs <me@cacharle.xyz>2022-12-29 05:37:43 +0100
commitf3d0ca0ec9f59043f0a98ce7243fd52107f8a300 (patch)
tree737ae86074c1b18a90b3dce4b22f8ba3f09ab639 /config/awesome/rc.lua
parent894529077ae4b401abde3ae52e3bd31dcbeaf2dd (diff)
downloaddotfiles-f3d0ca0ec9f59043f0a98ce7243fd52107f8a300.tar.gz
dotfiles-f3d0ca0ec9f59043f0a98ce7243fd52107f8a300.tar.bz2
dotfiles-f3d0ca0ec9f59043f0a98ce7243fd52107f8a300.zip
Updated awesome config to spawn new window at the bottom of layout instead of master
Diffstat (limited to 'config/awesome/rc.lua')
-rw-r--r--config/awesome/rc.lua13
1 files changed, 13 insertions, 0 deletions
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)