fix: some stuff

This commit is contained in:
rxyhn 2022-03-10 03:31:10 +07:00
parent 7197ba0f43
commit 452e1be6ab
2 changed files with 29 additions and 25 deletions

View file

@ -23,7 +23,6 @@ else
day=$(echo $day | cut -d \" \" -f3)
echo \"${day}d ${hr}h ${mt}m\"
fi
"]]
local update_interval = 60

View file

@ -82,7 +82,11 @@ local function toggle_pop()
end
end
local vol_first_time = true
awesome.connect_signal("signal::volume", function(value, muted)
if vol_first_time then
vol_first_time = false
else
pop_icon.markup = ""
pop_bar.value = value
@ -94,6 +98,7 @@ awesome.connect_signal("signal::volume", function(value, muted)
end
toggle_pop()
end
end)
awesome.connect_signal("signal::brightness", function(value)