From c8ecee7bd49b5979406e44f477101ff6bfb235dc Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 14 Nov 2021 13:48:40 +0100 Subject: rc: do the per-screen setup on new screen connect --- rc.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/rc.lua b/rc.lua index 0a8a4f1..5ff66cb 100644 --- a/rc.lua +++ b/rc.lua @@ -77,7 +77,12 @@ mypromptbox = {} local wsp = workspace.Workspace:new(layouts) -for s in screen do +awful.screen.connect_for_each_screen(function(s) + print('connected screen') + for k, v in pairs(s.outputs) do + print(k) + end + local panel_width = beautiful.xresources.apply_dpi(128, s) -- Create a promptbox for each screen @@ -119,7 +124,7 @@ for s in screen do -- show desktop on th screen wsp:view(s, s.index, 1) -end +end) clientbuttons = gears.table.join( -- cgit v1.2.3