rkmax / dbus_media

D-Bus media controllers for awesome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbus media controllers for awesome

How does it work

Any media player that conform the MPRIS spec should work

How to use it

Clone the repo

git clone https://github.com/rkmax/dbus_media ~/.config/awesome/dbus_media

Include into your configuration

-- ~/.config/awesome/rc.lua
-- ...
local media = require('dbus_media')
-- ...
globalkeys = gears.table.join(
-- ...
        awful.key({ }, "XF86AudioPlay", media.play_pause, { description = "Play/Pause", group = "media"}),
        awful.key({ }, "XF86AudioStop", media.stop, { description = "Stop", group = "media"}),
        awful.key({ }, "XF86AudioPrev", media.previous, { description = "Previous", group = "media"}),
        awful.key({ }, "XF86AudioNext", media.next, { description = "Next", group = "media"})    
)

About

D-Bus media controllers for awesome


Languages

Language:Lua 100.0%