Media keys with mpris
This commit is contained in:
parent
53a8ba106a
commit
18a277e8b1
12
rc.lua
12
rc.lua
|
@ -439,6 +439,18 @@ globalkeys = awful.util.table.join(
|
|||
awful.util.spawn("xbacklight -inc 2")
|
||||
end, {description = "increase brightness", group="Fn Keys"}),
|
||||
|
||||
awful.key({ }, "XF86AudioPlay", function ()
|
||||
awful.util.spawn("playerctl -a play-pause")
|
||||
end, {description = "pause or resume music", group="Media Keys"}),
|
||||
|
||||
awful.key({ }, "XF86AudioStop", function ()
|
||||
awful.util.spawn("playerctl -a stop")
|
||||
end, {description = "stop music", group="Media Keys"}),
|
||||
|
||||
awful.key({ }, "XF86AudioNext", function ()
|
||||
awful.util.spawn("playerctl -a next")
|
||||
end, {description = "next music", group="Media Keys"}),
|
||||
|
||||
awful.key({modkey}, "#82", function ()
|
||||
awful.util.spawn("xbacklight -dec 2")
|
||||
end, {description = "decrease brightness", group="Brightness controls"}),
|
||||
|
|
Loading…
Reference in New Issue