From d314f92c903f88d5e1eddf63ed7b17da05ce2b26 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Apr 2020 16:55:25 +0200 Subject: rc: place new clients on the screen where the mouse currently is --- rc.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index 97cd114..06819e8 100644 --- a/rc.lua +++ b/rc.lua @@ -182,6 +182,11 @@ client.connect_signal("manage", function (c, startup) -- Prevent clients from being unreachable after screen count change awful.placement.no_offscreen(c) end + + -- put the client where the mouse is + if client.focus then + c:move_to_screen(mouse.screen) + end end) client.connect_signal("focus", function(c) c.border_color = "#b0e2ff" end) -- cgit v1.2.3