Reintroduced tooltip in pulseaudio widget

This commit is contained in:
Calvin Timmer 2017-02-02 20:25:21 +01:00
parent 58a060dfcb
commit 9bb63d4b10
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ local function worker(args)
local cmd = args.cmd or ("pacmd list-" .. devicetype .. "s | sed -n -e '/* index:/,/index:/ !d' -e '/* index:/ p' -e '/base volume:/ d' -e '/volume:/ p' -e '/muted:/ p' -e '/device\\.string/ p'")
pulseaudio.widget = wibox.widget.textbox()
pulseaudio.tooltip = awful.tooltip({ objects = { pulseaudio.widget } })
function pulseaudio.update()
if scallback then cmd = scallback() end
@ -50,6 +51,7 @@ local function worker(args)
volume_now.right = volume_now.channel[2] or "N/A"
widget = pulseaudio.widget
tooltip = pulseaudio.tooltip
settings()
end)