diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-04-08 17:20:40 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-04-08 17:20:40 +0200 |
commit | 5177d3eab6276fefc846d730a6f64065d1aeedd0 (patch) | |
tree | b9277af8358c72ca11266ec2739771cbfe41da15 /rc.lua | |
parent | 6a5e3dd3ba90bb775fda96c48debb60fc128a901 (diff) |
workspace: add desktops automatically
Diffstat (limited to 'rc.lua')
-rw-r--r-- | rc.lua | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -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) |