diff options
-rw-r--r-- | bindings.lua | 8 | ||||
-rw-r--r-- | utils.lua | 2 |
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), @@ -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) |