awesomewm/binds/system/mpd.lua

52 lines
714 B
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {}, "XF86AudioPrev",
function ()
2022-04-24 12:54:20 -07:00
mpc:prev()
2021-08-01 07:24:26 -07:00
end,
{
description = "Previous track",
group = "MPD"
}
),
awful.key( {}, "XF86AudioPlay",
function ()
2022-04-24 12:54:20 -07:00
mpc:toggle()
2021-08-01 07:24:26 -07:00
end,
{
description = "Play/Pause",
group = "MPD"
}
),
awful.key( {}, "XF86AudioNext",
function ()
2022-04-24 12:54:20 -07:00
mpc:next()
2021-08-01 07:24:26 -07:00
end,
{
description = "Next track",
group = "MPD"
}
),
awful.key( {"Mod4"}, "XF86AudioRaiseVolume",
function ()
2022-04-24 12:54:20 -07:00
mpc:volume_up()
2021-08-01 07:24:26 -07:00
end,
{
description = "Volume up",
group = "MPD"
}
),
awful.key( {"Mod4"}, "XF86AudioLowerVolume",
function ()
2022-04-24 12:54:20 -07:00
mpc:volume_down()
2021-08-01 07:24:26 -07:00
end,
{
description = "Volume down",
group = "MPD"
}
)
)