aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-29 23:45:54 +0200
committerMateja <mail@matejamaric.com>2021-04-29 23:45:54 +0200
commit9bc271e08e5e15d55902bcc9525e6e445e73cb59 (patch)
treec03cedc1c8ea477f43ec9df245a7507223c8160b
parent9b8b1def565ca14872c7cdb076cb54deade7039c (diff)
downloaddotfiles-9bc271e08e5e15d55902bcc9525e6e445e73cb59.tar.gz
dotfiles-9bc271e08e5e15d55902bcc9525e6e445e73cb59.zip
Add keybindings for MPD.
-rw-r--r--.config/awesome/rc.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua
index 71528d4..79b90c5 100644
--- a/.config/awesome/rc.lua
+++ b/.config/awesome/rc.lua
@@ -191,7 +191,18 @@ globalkeys = gears.table.join(
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"})
+ {description = "Toggle mute", group = "widgets"}),
+
+ -- Music
+ awful.key({ modkey }, "x", function () awful.spawn("mpc toggle") end,
+ {description = "Pause/Resume MPD playback", group = "music"}),
+ awful.key({ modkey, "Shift" }, "x", function () awful.spawn("bash -c ~/.local/bin/mpd_show.sh") end,
+ {description = "Display song.", group = "music"}),
+
+ awful.key({ modkey }, "z", function () awful.spawn("mpc next") end,
+ {description = "MPD next song", group = "music"}),
+ awful.key({ modkey, "Shift" }, "z", function () awful.spawn("mpc prev") end,
+ {description = "MPD previous song", group = "music"})
)