mirror of
https://github.com/don-philipe/knorke.git
synced 2026-11-06 19:44:12 +01:00
Mark active audio sink
This commit is contained in:
1 parent
4f112a6726
commit
4fa74ea78c
1 file changed
+5
-1
@@ -143,7 +143,11 @@ awful.tooltip(
|
||||
if not err then
|
||||
for i = 1, #json_obj do
|
||||
if json_obj[i].info and json_obj[i].info.props["media.class"] == "Audio/Sink" then
|
||||
table.insert(results, tostring(json_obj[i].info.props["node.description"]))
|
||||
local active = ""
|
||||
if json_obj[i].info.state == "running" then
|
||||
active = " *"
|
||||
end
|
||||
table.insert(results, tostring(json_obj[i].info.props["node.description"]) .. active)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user