summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-08 17:08:14 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-08 17:08:14 +0200
commit6a5e3dd3ba90bb775fda96c48debb60fc128a901 (patch)
tree8f452f1ec7f5d6571a10f0e44d8111c9b2e2aa83 /rc.lua
parent8a496fdde61b766e3ff720172419b7d53cbc40f2 (diff)
rc: avoid variable shadowing
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/rc.lua b/rc.lua
index a75eeae..ae145bf 100644
--- a/rc.lua
+++ b/rc.lua
@@ -53,10 +53,10 @@ local layouts =
-- }}}
-- {{{ Tags
-workspace = workspace.Workspace:new(layouts)
+local wsp = workspace.Workspace:new(layouts)
for s in screen do
- workspace:add_desktop(s.index, "Desktop " .. s.index, 10)
- workspace:view(s, s.index, 1)
+ wsp:add_desktop(s.index, "Desktop " .. s.index, 10)
+ wsp:view(s, s.index, 1)
end
-- }}}
@@ -86,13 +86,13 @@ for s in screen do
-- Create a tasklist widget
local pgr = pager.Pager:new(s, 128, 800)
- pgr:set_desktop(workspace.desktops[1])
+ pgr:set_desktop(wsp.desktops[1])
- workspace.signals:connect_signal("desktop:view",
+ wsp.signals:connect_signal("desktop:view",
function(signals, view_screen, desktop)
print("desktop:view " .. desktop .. " on " .. view_screen.index)
if view_screen == s then
- pgr:set_desktop(workspace.desktops[desktop])
+ pgr:set_desktop(wsp.desktops[desktop])
end
end)
@@ -131,7 +131,7 @@ clientbuttons = gears.table.join(
awful.button({ commondefs.modkey }, 1, awful.mouse.client.move),
awful.button({ commondefs.modkey }, 3, awful.mouse.client.resize))
-local globalkeys, clientkeys = bindings.create(workspace)
+local globalkeys, clientkeys = bindings.create(wsp)
-- Set keys
root.keys(globalkeys)