summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-14 13:48:40 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-14 13:48:40 +0100
commitc8ecee7bd49b5979406e44f477101ff6bfb235dc (patch)
treeb85d19690a64dcb3621b607b29eb489f9551bda6
parent5d833c04d2f83c68315ea3e1d9001d7afc4ce294 (diff)
rc: do the per-screen setup on new screen connect
-rw-r--r--rc.lua9
1 files 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 <n> on <n>th screen
wsp:view(s, s.index, 1)
-end
+end)
clientbuttons = gears.table.join(