Fix play/pause

This commit is contained in:
Thomas Avé 2022-08-31 15:27:22 +02:00
parent 2090c3eebc
commit 0064a6a9c2
1 changed files with 3 additions and 3 deletions

View File

@ -208,19 +208,19 @@ keys.globalkeys = gears.table.join(
),
awful.key({}, "XF86AudioNext",
function()
awful.spawn("mpc next", false)
awful.spawn("playerctl next", false)
end,
{description = "next music", group = "hotkeys"}
),
awful.key({}, "XF86AudioPrev",
function()
awful.spawn("mpc prev", false)
awful.spawn("playerctl previous", false)
end,
{description = "previous music", group = "hotkeys"}
),
awful.key({}, "XF86AudioPlay",
function()
awful.spawn("mpc toggle", false)
awful.spawn("playerctl play-pause", false)
end,
{description = "play/pause music", group = "hotkeys"}
),