Browse Source

fix(waybar): fix cava creating multiple instances

WaybarCava was creating a new instance of cava every time it was
executed. This happens when waybar is restarted/wallpaper is changed

Fixed by killing cava process referencing the same config

Fix: #131
pull/132/head
Luka Momčilović 2 years ago
parent
commit
ded28ab85a
No known key found for this signature in database
GPG Key ID: 4DAC474FFA15BEF5
  1. 3
      config/hypr/scripts/WaybarCava.sh

3
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"

Loading…
Cancel
Save