summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-08 17:20:40 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-08 17:20:40 +0200
commit5177d3eab6276fefc846d730a6f64065d1aeedd0 (patch)
treeb9277af8358c72ca11266ec2739771cbfe41da15 /rc.lua
parent6a5e3dd3ba90bb775fda96c48debb60fc128a901 (diff)
workspace: add desktops automatically
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua14
1 files changed, 5 insertions, 9 deletions
diff --git a/rc.lua b/rc.lua
index ae145bf..2910233 100644
--- a/rc.lua
+++ b/rc.lua
@@ -52,14 +52,6 @@ local layouts =
}
-- }}}
--- {{{ Tags
-local wsp = workspace.Workspace:new(layouts)
-for s in screen do
- wsp:add_desktop(s.index, "Desktop " .. s.index, 10)
- wsp:view(s, s.index, 1)
-end
--- }}}
-
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
@@ -72,7 +64,11 @@ mytextclock = wibox.widget.textclock()
mywibox = {}
mypromptbox = {}
+local wsp = workspace.Workspace:new(layouts)
+
for s in screen do
+ wsp:view(s, s.index, 1)
+
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
@@ -86,7 +82,7 @@ for s in screen do
-- Create a tasklist widget
local pgr = pager.Pager:new(s, 128, 800)
- pgr:set_desktop(wsp.desktops[1])
+ pgr:set_desktop(wsp.desktops[s.index])
wsp.signals:connect_signal("desktop:view",
function(signals, view_screen, desktop)