summaryrefslogtreecommitdiff
path: root/volume-widget/README.md
diff options
context:
space:
mode:
authorDesour <vorunbekannt75@web.de>2021-09-23 23:04:26 +0200
committerDesour <vorunbekannt75@web.de>2021-09-23 23:04:26 +0200
commitfe6606d51124b1ca3053474d4b625023238a2577 (patch)
tree4c541d6ba75a43594761f97797f9047dfdc256c5 /volume-widget/README.md
parent8c5a58c93c0549c26f76cb199cd307f8ef7026bd (diff)
Add a step parameter for volume_widget:inc() and :dec()
Diffstat (limited to 'volume-widget/README.md')
-rw-r--r--volume-widget/README.md5
1 files changed, 3 insertions, 2 deletions
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: