diff options
author | Mateja <mail@matejamaric.com> | 2021-04-28 19:53:58 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-04-28 19:53:58 +0200 |
commit | 059273d3a6ce35a1430d25835ced2ddf32934f9f (patch) | |
tree | c7abc1049a811412b4d7e9553843f520c4225cbc | |
parent | 9a587191e737964425c54d2b291b81ed3cd8629e (diff) | |
download | dotfiles-059273d3a6ce35a1430d25835ced2ddf32934f9f.tar.gz dotfiles-059273d3a6ce35a1430d25835ced2ddf32934f9f.zip |
Add audio keybindings.
-rw-r--r-- | .config/awesome/rc.lua | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index c9ae768..dc109c7 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -186,7 +186,16 @@ globalkeys = gears.table.join( -- Widgets awful.key({ modkey }, "space", function () mykeyboardlayout.next_layout() end, - {description = "next keyboard layout", group = "widgets"}) + {description = "next keyboard layout", group = "widgets"}), + + -- Audio + awful.key({ modkey }, "h", function () awful.spawn("amixer -q sset Master 1%+") end, + {description = "Increase volume", group = "widgets"}), + awful.key({ modkey }, "n", function () awful.spawn("amixer -q sset Master 1%-") end, + {description = "Decrease volume", group = "widgets"}), + awful.key({ modkey }, "m", function () awful.spawn("amixer -q sset Master toggle") end, + {description = "Toggle mute", group = "widgets"}) + ) clientkeys = gears.table.join( |