diff options
author | streetturtle <streetturtle@gmail.com> | 2020-06-29 22:38:13 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-06-29 22:38:13 -0400 |
commit | 67b947ba8869b41e9afa710bf3e82a6ad06effba (patch) | |
tree | 09351b81b5935ddca6ce8cf69ab4c2614f56217d /volumearc-widget/README.md | |
parent | 36595c9d9c7ce9887d3185a8271a90c29b9593c6 (diff) | |
parent | 2cab18315b9fffeede00d586693b65ce401a2dc4 (diff) |
Merge branch 'master' of github.com:streetturtle/awesome-wm-widgets
Diffstat (limited to 'volumearc-widget/README.md')
-rw-r--r-- | volumearc-widget/README.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/volumearc-widget/README.md b/volumearc-widget/README.md index 5fc0a5b..8f13bbf 100644 --- a/volumearc-widget/README.md +++ b/volumearc-widget/README.md @@ -25,6 +25,7 @@ It is possible to customize widget by providing a table with all or some of the | `inc_volume_cmd` | `amixer -D pulse sset Master 5%+` | Increase volume level | | `dec_volume_cmd` | `amixer -D pulse sset Master 5%-` | Decrease volume level | | `tog_volume_cmd` | `amixer -D pulse sset Master toggle` | Mute / unmute | +| `button_press` | `function(_, _, _, button) <sane default logic> end` | Overwrite the 'button\_press' signal for this widget | ### Example: @@ -33,7 +34,11 @@ volumearc_widget({ main_color = '#af13f7', mute_color = '#ff0000', thickness = 5, - height = 25 + height = 25, + button_press = function(_, _, _, button) -- Overwrites the button press behaviour to open pavucontrol when clicked + if (button == 1) then awful.spawn('pavucontrol --tab=3', false) + end + end }) ``` |