From fe598e3299224d33f2ff9ada1003a58add48ad9f Mon Sep 17 00:00:00 2001 From: streetturtle Date: Thu, 9 Feb 2017 21:56:09 -0500 Subject: add mouse support to the volume widget --- volume-widget/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'volume-widget/README.md') diff --git a/volume-widget/README.md b/volume-widget/README.md index 35d280c..40cc03e 100644 --- a/volume-widget/README.md +++ b/volume-widget/README.md @@ -24,9 +24,12 @@ s.mytasklist, -- Middle widget ## Control volume -To be able to control volume level add following lines in shortcut section of the **rc.lua** (the command could be slightly different depending on your pc configuration): +To mute/unmute click on widget. To increase/decrease volume scroll up or down when mouse cursor is over the widget. + +If you want to control volume level by keyboard shortcuts add following lines in shortcut section of the **rc.lua** (the command could be slightly different depending on your pc configuration): ```lua awful.key({ modkey}, "[", function () awful.spawn("amixer -D pulse sset Master 5%-") end, {description = "increase volume", group = "custom"}), awful.key({ modkey}, "]", function () awful.spawn("amixer -D pulse sset Master 5%+") end, {description = "decrease volume", group = "custom"}), +awful.key({ modkey}, "\\", function () awful.spawn("amixer -D pulse set Master +1 toggle") end, {description = "mute volume", group = "custom"}), ``` -- cgit v1.2.3