aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/WaybarCava.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-01-17 05:45:05 +0900
committerGitHub <noreply@github.com>2024-01-17 05:45:05 +0900
commitffd8ce7793c0b6812f524f49aa10795aa467656d (patch)
tree217e2b789a2463e8d4fbe7b95134b5cd9566acd0 /config/hypr/scripts/WaybarCava.sh
parent870f5c7b7539744b626c713c95bc9983c8bde44d (diff)
parentf737762606a3169823240b2657f5430f09d1a11a (diff)
Merge pull request #133 from JaKooLit/development
Development
Diffstat (limited to 'config/hypr/scripts/WaybarCava.sh')
-rwxr-xr-xconfig/hypr/scripts/WaybarCava.sh3
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"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage