diff options
author | Mateja <mail@matejamaric.com> | 2021-04-29 23:45:54 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-04-29 23:45:54 +0200 |
commit | 9bc271e08e5e15d55902bcc9525e6e445e73cb59 (patch) | |
tree | c03cedc1c8ea477f43ec9df245a7507223c8160b /.config/awesome | |
parent | 9b8b1def565ca14872c7cdb076cb54deade7039c (diff) | |
download | dotfiles-9bc271e08e5e15d55902bcc9525e6e445e73cb59.tar.gz dotfiles-9bc271e08e5e15d55902bcc9525e6e445e73cb59.zip |
Add keybindings for MPD.
Diffstat (limited to '.config/awesome')
-rw-r--r-- | .config/awesome/rc.lua | 13 |
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"}) ) |