From fe6606d51124b1ca3053474d4b625023238a2577 Mon Sep 17 00:00:00 2001 From: Desour Date: Thu, 23 Sep 2021 23:04:26 +0200 Subject: Add a step parameter for volume_widget:inc() and :dec() --- volume-widget/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'volume-widget/README.md') diff --git a/volume-widget/README.md b/volume-widget/README.md index 7c1ddb7..368f311 100644 --- a/volume-widget/README.md +++ b/volume-widget/README.md @@ -43,8 +43,8 @@ Note that widget uses following command the get the current volume: `amixer -D p To improve responsiveness of the widget when volume level is changed by a shortcut use corresponding methods of the widget: ```lua -awful.key({ modkey }, "]", function() volume_widget:inc() end), -awful.key({ modkey }, "[", function() volume_widget:dec() end), +awful.key({ modkey }, "]", function() volume_widget:inc(5) end), +awful.key({ modkey }, "[", function() volume_widget:dec(5) end), awful.key({ modkey }, "\\", function() volume_widget:toggle() end), ``` @@ -57,6 +57,7 @@ It is possible to customize the widget by providing a table with all or some of | Name | Default | Description | |---|---|---| | `mixer_cmd` | `pavucontrol` | command to run on middle click (e.g. a mixer program) | +| `step` | `5` | How much the volume is raised or lowered at once (in %) | | `widget_type`| `icon_and_text`| Widget type, one of `horizontal_bar`, `vertical_bar`, `icon`, `icon_and_text`, `arc` | Depending on the chosen widget type add parameters from the corresponding section below: -- cgit v1.2.3