From 2075285a927e7c16255fdbf4aa594d45e9aabc3e Mon Sep 17 00:00:00 2001 From: crater2150 Date: Tue, 31 Oct 2017 21:20:23 +0100 Subject: [PATCH] Replace deprecated awful.util.spawn with awful.spawn --- separable/binder.lua | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/separable/binder.lua b/separable/binder.lua index 3865e84..c09dacb 100644 --- a/separable/binder.lua +++ b/separable/binder.lua @@ -19,14 +19,7 @@ menubar.utils.terminal = conf.cmd.terminal -- Set the terminal for applications local binder = {modal = mb} --- {{{ Mouse bindings -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 +local function spawnf(cmd) return function() awful.spawn(cmd) end end binder.spawn = spawnf conf.cmd.run = conf.cmd.run or spawnf("dmenu_run") @@ -213,6 +206,11 @@ awful.key({ modkey }, "i", function(c) 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( awful.button({ }, 1, function (c) client.focus = c; c:raise() end), awful.button({ modkey }, 1, awful.mouse.client.move),