summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-12 09:11:00 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-12 09:11:00 +0200
commitf683eb374f4f49f085e81b0a4e937e471cc1ee16 (patch)
tree1827752d588b89d7babdc2d5396e8d4d7155db6f
parent0457bb6fd0a1214e5c74ed55bcefe32d35e2f45b (diff)
rc: stop calling pager:set_desktop() manually
Just switch to the initial desktop after creating the pager.
-rw-r--r--rc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.lua b/rc.lua
index 78379e2..23702d9 100644
--- a/rc.lua
+++ b/rc.lua
@@ -79,8 +79,6 @@ local wsp = workspace.Workspace:new(layouts)
for s in screen do
local panel_width = beautiful.xresources.apply_dpi(128, s)
- wsp:view(s, s.index, 1)
-
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
@@ -98,7 +96,6 @@ for s in screen do
-- Create a tasklist widget
local pgr = pager.Pager:new(wsp, s)
- pgr:set_desktop(wsp.desktops[s.index])
-- Widgets that are aligned to the bottom of the tool bar
local layout_bottom = wibox.layout.fixed.vertical()
@@ -118,6 +115,9 @@ for s in screen do
-- Create the wibox
mywibox[s] = awful.wibar({ position = "right", screen = s, width = panel_width })
mywibox[s]:set_widget(layout)
+
+ -- show desktop <n> on <n>th screen
+ wsp:view(s, s.index, 1)
end