From 7af31e151d0219a60b408913783056caee1f8392 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Wed, 21 Sep 2022 11:36:37 +0200 Subject: Copy ellipsize function from Spotify widget --- cmus-widget/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmus-widget/README.md') diff --git a/cmus-widget/README.md b/cmus-widget/README.md index e33655e..ddf4bc2 100644 --- a/cmus-widget/README.md +++ b/cmus-widget/README.md @@ -36,7 +36,7 @@ awful.key({ }, "XF86AudioPlay", function () cmus_widget:play() 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"}), -awful.key({ }, "XF86AudioStop", function () cmus_widget:stop() end, {description = "stop cmus", group = "cmus"}), +awful.key({ }, "XF86AudioStop", function () cmus_widget:stop() end, {description = "stop track", group = "cmus"}), ``` ## Customization @@ -50,4 +50,5 @@ It is possible to customize the widget by providing a table with all or some of | `font` | `beautiful.font` | Font name and size, like `Play 12` | | `path_to_icons` | `/usr/share/icons/Arc/actions/symbolic/` | Alternative path for the icons | | `timeout`| `10` | Refresh cooldown | +| `max_length` | `30` | Maximum lentgh of title. Text will be ellipsized if longer. | | `space` | `3` | Space between icon and track title | -- cgit v1.2.3