summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-06-22 12:36:54 +0200
committerAnton Khirnov <anton@khirnov.net>2018-06-22 12:37:07 +0200
commit0d4925f5a35ebcb7f143ce9e947d54987a539033 (patch)
tree84b22cc9371e9dc99641dc1c8c27b84842d6bb71
parentf90e2ea391b1f39e30f5c07a0305151406586487 (diff)
Replace deprecated awful.util.spawn with awful.spawn.
-rw-r--r--bindings.lua8
-rw-r--r--utils.lua2
2 files changed, 5 insertions, 5 deletions
diff --git a/bindings.lua b/bindings.lua
index 98ecb85..2284905 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -9,7 +9,7 @@ function M.create(workspace)
local globalkeys = awful.util.table.join(
awful.key({ modkey, "Mod1" }, "Delete", awesome.restart),
- awful.key({ modkey }, "Pause", function () awful.util.spawn("xscreensaver-command -lock") end),
+ awful.key({ modkey }, "Pause", function () awful.spawn("xscreensaver-command -lock") end),
-- program launching
awful.key({ modkey, }, "t", function () utils.spawn_current(commondefs.terminal) end),
@@ -19,9 +19,9 @@ function M.create(workspace)
-- audio control
awful.key({ modkey }, "Prior", function () utils.vol_control(1) end),
awful.key({ modkey }, "Next", function () utils.vol_control(-1) end),
- awful.key({ modkey }, "grave", function () awful.util.spawn("mpc toggle") end),
- awful.key({ modkey }, "b", function () awful.util.spawn("mpc next") end),
- awful.key({ modkey }, "p", function () awful.util.spawn("mpc prev") end),
+ awful.key({ modkey }, "grave", function () awful.spawn("mpc toggle") end),
+ awful.key({ modkey }, "b", function () awful.spawn("mpc next") end),
+ awful.key({ modkey }, "p", function () awful.spawn("mpc prev") end),
-- focus/screen switching
awful.key({ modkey, }, "q", function() utils.screen_focus_physical(1) end),
diff --git a/utils.lua b/utils.lua
index bd3516d..51d159a 100644
--- a/utils.lua
+++ b/utils.lua
@@ -32,7 +32,7 @@ end
-- audio control functions
function M.vol_control(n)
local cmd = string.format("amixer -q set Master %d%%", math.abs(n)) .. (n < 0 and "-" or "+")
- awful.util.spawn(cmd)
+ awful.spawn(cmd)
end
function M.spawn_current(command)