From 9bc271e08e5e15d55902bcc9525e6e445e73cb59 Mon Sep 17 00:00:00 2001 From: Mateja Date: Thu, 29 Apr 2021 23:45:54 +0200 Subject: Add keybindings for MPD. --- .config/awesome/rc.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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"}) ) -- cgit v1.2.3