From: copycat-killer Date: Sun, 4 Dec 2016 10:59:08 +0000 (+0100) Subject: pull #238: set step to 1%; added same middle click event to alsabar X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/14d047eaa75fb760508e2e4aeb51b42f5fed31ed?hp=c7630b3f109e3963384ce8981fe70a1e253d38d0 pull #238: set step to 1%; added same middle click event to alsabar --- diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index eec3428..c1d25d0 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -159,6 +159,10 @@ local function worker(args) awful.button ({}, 1, function() awful.util.spawn(alsabar.mixer) end), + awful.button ({}, 2, function() + awful.util.spawn(string.format("%s set %s 100%%", alsabar.cmd, alsabar.channel)) + pulsebar.update() + end), awful.button ({}, 3, function() awful.util.spawn(string.format("%s set %s toggle", alsabar.cmd, alsabar.channel)) alsabar.update() diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index 5b22684..cd153a1 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -27,7 +27,7 @@ local setmetatable = setmetatable -- lain.widgets.pulsebar local pulsebar = { sink = 0, - step = "5%", + step = "1%", colors = { background = beautiful.bg_normal, diff --git a/wiki b/wiki index 8555dd3..871d249 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 8555dd328bbf444175fbfece962a50017b219a5e +Subproject commit 871d249789aa00159943fc8553fe0cbfc2159cfd