Replace deprecated awful.util.spawn with awful.spawn

This commit is contained in:
crater2150 2017-10-31 21:20:23 +01:00
parent b56e56a3c0
commit 2075285a92

View file

@ -19,14 +19,7 @@ menubar.utils.terminal = conf.cmd.terminal -- Set the terminal for applications
local binder = {modal = mb} local binder = {modal = mb}
-- {{{ Mouse bindings local function spawnf(cmd) return function() awful.spawn(cmd) end end
root.buttons(awful.util.table.join(
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
local function spawnf(cmd) return function() awful.util.spawn(cmd) end end
binder.spawn = spawnf binder.spawn = spawnf
conf.cmd.run = conf.cmd.run or spawnf("dmenu_run") conf.cmd.run = conf.cmd.run or spawnf("dmenu_run")
@ -213,6 +206,11 @@ awful.key({ modkey }, "i", function(c)
end) end)
) )
root.buttons(awful.util.table.join(
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
local clientbuttons = awful.util.table.join( local clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move), awful.button({ modkey }, 1, awful.mouse.client.move),