From 0526ad8637e7f32567a7e0587b6178fc16c9ed63 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 8 Apr 2020 17:00:56 +0200 Subject: Replace awful.util.table with gears.table --- bindings.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bindings.lua') diff --git a/bindings.lua b/bindings.lua index 2599cde..8b3a6eb 100644 --- a/bindings.lua +++ b/bindings.lua @@ -1,13 +1,15 @@ local M = {} local awful = require("awful") +local gears = require("gears") + local commondefs = require("commondefs") local utils = require("utils") function M.create(workspace) local modkey = commondefs.modkey - local globalkeys = awful.util.table.join( + local globalkeys = gears.table.join( awful.key({ modkey, "Mod1" }, "Delete", awesome.restart), awful.key({ modkey }, "Pause", function () awful.spawn("xscreensaver-command -lock") end), @@ -98,7 +100,7 @@ function M.create(workspace) -- Be careful: we use keycodes to make it works on any keyboard layout. -- This should map on the top row of your keyboard, usually 1 to 9. for i = 1, 10 do - globalkeys = awful.util.table.join(globalkeys, + globalkeys = gears.table.join(globalkeys, -- View tag only. awful.key({ modkey }, "#" .. i + 9, function () @@ -123,7 +125,7 @@ function M.create(workspace) end for i = 1, 12 do - globalkeys = awful.util.table.join(globalkeys, + globalkeys = gears.table.join(globalkeys, -- View tag only. awful.key({ modkey }, "#" .. i + 66, function () @@ -143,7 +145,7 @@ function M.create(workspace) end)) end - local clientkeys = awful.util.table.join( + local clientkeys = gears.table.join( awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end), awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end), awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ), -- cgit v1.2.3