summaryrefslogtreecommitdiff
path: root/cmus-widget/README.md
diff options
context:
space:
mode:
authorAugusto Gunsch <augusto@augustogunsch.com>2022-07-10 20:59:28 +0200
committerAugusto Gunsch <augusto@augustogunsch.com>2022-07-10 20:59:28 +0200
commit12cfe038f87b2f8366e9865135087a61b5a3c2c0 (patch)
tree9f6023cecd5f12bc0712c187ea27f0450c7f5464 /cmus-widget/README.md
parent83914c91c86eee4d70120a2849e752f7762908d7 (diff)
Add more functions for cmus widget
Diffstat (limited to 'cmus-widget/README.md')
-rw-r--r--cmus-widget/README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/cmus-widget/README.md b/cmus-widget/README.md
index eec5773..0f6dbc2 100644
--- a/cmus-widget/README.md
+++ b/cmus-widget/README.md
@@ -31,10 +31,11 @@ s.mytasklist, -- Middle widget
To improve responsiveness of the widget when playback is changed by a shortcut use corresponding methods of the widget:
```lua
-awful.key({ modkey, "Shift" },
- "p",
- function() cmus_widget:play_pause() end,
- {description = "play/pause cmus", group = "custom"}),
+awful.key({ modkey, "Shift" }, "p", function () cmus_widget:play_pause() end, {description = "toggle track", group = "cmus"}),
+awful.key({ }, "XF86AudioPlay", function () cmus_widget:play() end, {description = "play track", group = "cmus"}),
+awful.key({ }, "XF86AudioPause", function () cmus_widget:play() end, {description = "pause track", group = "cmus"}),
+awful.key({ }, "XF86AudioNext", function () cmus_widget:next_track() end, {description = "next track", group = "cmus"}),
+awful.key({ }, "XF86AudioPrev", function () cmus_widget:prev_track() end, {description = "previous track", group = "cmus"}),
```
## Customization