From 6a5e3dd3ba90bb775fda96c48debb60fc128a901 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Apr 2020 17:08:14 +0200 Subject: rc: avoid variable shadowing --- rc.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rc.lua') 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) -- cgit v1.2.3