Closed s0m3th1ng-r4nd0m closed 1 week ago
thanks for noticing, @s0m3th1ng-r4nd0m
@keth-real please check it out
@s0m3th1ng-r4nd0m can you please make a PR and remove this
instead of
cava -p "$config_file" | sed -u "${dict}" &
disown
use
cava -p "$config_file" | sed -u "${dict}"
Moreover
It should check if a Cava process is already running and use that process instead of making a new one again.
It's quite complex and slow to do it in bash.
@kRHYME7 Gotta push it here #1988
@s0m3th1ng-r4nd0m Fixed on #1988
Description
When switching from a waybar style that uses Cava to one that doesn't and then back again to one that does, it doesn't kill the previous Cava process and creates a new one again which results in multiple useless Cava processes running in background.
Steps to Reproduce
Expected Behavior
It should kill the Cava process when it is no longer needed like when switching to a Waybar style that doesn't have Cava module.
or
It should check if a Cava process is already running and use that process instead of making a new one again.
Actual Behavior
There's multiple useless processes of Cava running in the background each using around 9-10 MBs of RAM.
Screenshots
Environment