Added volume controls.
This commit is contained in:
parent
bbcd2a6ab0
commit
4fdc74cdbe
@ -332,11 +332,18 @@ globalkeys = gears.table.join(
|
|||||||
end,
|
end,
|
||||||
{description = "lua execute prompt", group = "awesome"}),
|
{description = "lua execute prompt", group = "awesome"}),
|
||||||
-- Menubar
|
-- Menubar
|
||||||
awful.key({ modkey }, " ", function() menubar.show() end,
|
awful.key({ modkey }, "space", function() menubar.show() end,
|
||||||
{description = "show the menubar", group = "launcher"}),
|
{description = "show the menubar", group = "launcher"}),
|
||||||
|
|
||||||
-- Custom bindings
|
-- Custom bindings
|
||||||
awful.key({ modkey, }, "l", function () awful.spawn("xlock") end,
|
|
||||||
|
-- Volume
|
||||||
|
awful.key({ modkey, }, "Up", function () awful.spawn("amixer set Master 5%+") end,
|
||||||
|
{description = "Volume up", group = "media"}),
|
||||||
|
awful.key({ modkey, }, "Down", function () awful.spawn("amixer set Master 5%-") end,
|
||||||
|
{description = "Volume down", group = "media"}),
|
||||||
|
|
||||||
|
awful.key({ modkey, }, "x", function () awful.spawn("xlock") end,
|
||||||
{description = "xlock", group = "launcher"}),
|
{description = "xlock", group = "launcher"}),
|
||||||
awful.key({ modkey, }, "b", function () awful.spawn("firefox") end,
|
awful.key({ modkey, }, "b", function () awful.spawn("firefox") end,
|
||||||
{description = "open firefox", group = "launcher"}),
|
{description = "open firefox", group = "launcher"}),
|
||||||
@ -344,6 +351,7 @@ globalkeys = gears.table.join(
|
|||||||
{description = "open nnn", group = "launcher"}),
|
{description = "open nnn", group = "launcher"}),
|
||||||
awful.key({ modkey, "Shift" }, "e", function () awful.spawn("nemo") end,
|
awful.key({ modkey, "Shift" }, "e", function () awful.spawn("nemo") end,
|
||||||
{description = "open nemo", group = "launcher"}),
|
{description = "open nemo", group = "launcher"}),
|
||||||
|
|
||||||
-- set to spawn after key release to work
|
-- set to spawn after key release to work
|
||||||
awful.key({ modkey, }, "q", nil, function () awful.spawn.with_shell("~/.config/awesome/screenshot.sh") end,
|
awful.key({ modkey, }, "q", nil, function () awful.spawn.with_shell("~/.config/awesome/screenshot.sh") end,
|
||||||
{description = "dmenu screenshot prompt", group = "launcher"}),
|
{description = "dmenu screenshot prompt", group = "launcher"}),
|
||||||
|
Loading…
Reference in New Issue
Block a user