summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-07-03 12:04:04 +0200
committerAnton Khirnov <anton@khirnov.net>2018-07-03 12:05:18 +0200
commitf481763925753407cd43d4bc2b07f9131ba9e2a8 (patch)
tree47032b35a105eb8f2abee8271509c0d29d4e4f51 /rc.lua
parentb23c940c7e16481272baa4dbbd2fc8f75768f646 (diff)
rc: remove an unnecessary global pager table
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/rc.lua b/rc.lua
index 7feaea2..1d5753a 100644
--- a/rc.lua
+++ b/rc.lua
@@ -73,8 +73,6 @@ mytextclock = wibox.widget.textclock()
mywibox = {}
mypromptbox = {}
-mytasklist = {}
-
for s in screen do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt()
@@ -90,7 +88,6 @@ for s in screen do
-- Create a tasklist widget
local pgr = pager.Pager:new(s, 128, 800)
pgr:set_desktop(workspace.desktops[1])
- mytasklist[s] = pgr
workspace.signals:connect_signal("desktop:view",
function(signals, view_screen, desktop)
@@ -113,7 +110,7 @@ for s in screen do
-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.vertical()
layout:set_top(left_layout)
- layout:set_middle(mytasklist[s])
+ layout:set_middle(pgr)
layout:set_bottom(right_layout)
-- Create the wibox