diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2021-10-13 19:56:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 19:56:53 -0400 |
commit | 56b13ca8b1b337e738cf0bd12311d8529211ad07 (patch) | |
tree | 4c541d6ba75a43594761f97797f9047dfdc256c5 /volume-widget/README.md | |
parent | 8c5a58c93c0549c26f76cb199cd307f8ef7026bd (diff) | |
parent | fe6606d51124b1ca3053474d4b625023238a2577 (diff) |
Merge pull request #301 from Desour/volume_step_inc_dec
Add a step parameter for volume_widget:inc() and :dec()
Diffstat (limited to 'volume-widget/README.md')
-rw-r--r-- | volume-widget/README.md | 5 |
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: |