summaryrefslogtreecommitdiff
path: root/bindings.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-04-08 17:00:56 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-08 17:00:56 +0200
commit0526ad8637e7f32567a7e0587b6178fc16c9ed63 (patch)
tree0adaa44b2e98fe865af07c3ffdd6a89d54b978f8 /bindings.lua
parentd314f92c903f88d5e1eddf63ed7b17da05ce2b26 (diff)
Replace awful.util.table with gears.table
Diffstat (limited to 'bindings.lua')
-rw-r--r--bindings.lua10
1 files changed, 6 insertions, 4 deletions
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 ),