diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2024-01-09 05:55:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 05:55:18 +0900 |
| commit | cec16f12164c1f55b8d0649fa415f32c8fb3b34e (patch) | |
| tree | 2016a9ffb82e1ca9f1da31547c83e7978ce0c821 /config | |
| parent | 2c0f9603b9c4d392f1fc46dd16fdffdc4c1fa466 (diff) | |
| parent | ded28ab85a197efbdea865d250593cc402e01f19 (diff) | |
Merge pull request #132 from momcilovicluka/development
fix(waybar): fix cava creating multiple instances
Diffstat (limited to 'config')
| -rwxr-xr-x | config/hypr/scripts/WaybarCava.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/hypr/scripts/WaybarCava.sh b/config/hypr/scripts/WaybarCava.sh index 77fce82a..711f4c62 100755 --- a/config/hypr/scripts/WaybarCava.sh +++ b/config/hypr/scripts/WaybarCava.sh @@ -28,5 +28,8 @@ data_format = ascii ascii_max_range = 7 EOF +# Kill cava if it's already running +pkill -f "cava -p $config_file" + # Read stdout from cava and perform substitution in a single sed command cava -p "$config_file" | sed -u "$dict" |
