From 7598e59247fc30d5169ebbd3099d3b5476385b4f Mon Sep 17 00:00:00 2001 From: smarkoco Date: Sat, 11 Mar 2023 14:57:18 -0500 Subject: [PATCH 1/3] correct repo folder name, for immediately being able to run after cloning --- README.md | 2 +- adfree.sh | 2 +- mute_spotify_timer.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 89b59ea..61889b7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Mutes and unmutes Spotify within 5 seconds of start and end of Ads. ### Usage: -To use just run `mute_spotify_timer.sh` either using terminal or Alt + F2 launcher or just add it to list of system Startup Applications. To allow monitoring the ongoing status, run `adfree.sh` as a Startup Application. It creates a new background tmux session called `adfree`, which can be connected to with `tmux a -t adfree`. +To use just run `mute_spotify_timer.sh` either using terminal or Alt + F2 launcher or just add it to list of system Startup Applications. To allow monitoring the ongoing status, run `adfree.sh` as a Startup Application, or with `bash adfree.sh`. It creates a new background tmux session called `adfree `, which can be connected to with `tmux a -t adfree`. ### Maintenance: diff --git a/adfree.sh b/adfree.sh index c8569d1..5ee32bd 100755 --- a/adfree.sh +++ b/adfree.sh @@ -1,3 +1,3 @@ #!/bin/bash tmux new-session -d -s adfree -tmux send-keys '~/spotify-muter-linux/mute_spotify_timer.sh' C-m # C-m sends ENTER keystroke +tmux send-keys '~/Spotify-Ads-Muter-Linux/mute_spotify_timer.sh' C-m # C-m sends ENTER keystroke diff --git a/mute_spotify_timer.sh b/mute_spotify_timer.sh index 937bc88..3b2aa63 100755 --- a/mute_spotify_timer.sh +++ b/mute_spotify_timer.sh @@ -8,11 +8,11 @@ while true; do if [[ "$name" = *"Advertisement"* || "$name" = *"Spotify"* ]] || [[ $url == *"/ad/"* ]]; then echo "Muting" - ~/spotify-muter-linux/mute_app.sh spotify mute + ~/Spotify-Ads-Muter-Linux/mute_app.sh spotify mute sleep 5 else echo "Unmuting" - ~/spotify-muter-linux/mute_app.sh spotify unmute + ~/Spotify-Ads-Muter-Linux/mute_app.sh spotify unmute fi sleep 1 done From e618429fb2565d6349d11727af061f2be71ed409 Mon Sep 17 00:00:00 2001 From: smarkoco <53878603+smarkoco@users.noreply.github.com> Date: Sat, 11 Mar 2023 15:05:21 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 61889b7..0b7e661 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Mutes and unmutes Spotify within 5 seconds of start and end of Ads. ### Usage: -To use just run `mute_spotify_timer.sh` either using terminal or Alt + F2 launcher or just add it to list of system Startup Applications. To allow monitoring the ongoing status, run `adfree.sh` as a Startup Application, or with `bash adfree.sh`. It creates a new background tmux session called `adfree `, which can be connected to with `tmux a -t adfree`. +To use just run `mute_spotify_timer.sh` either using terminal or Alt + F2 launcher or just add it to list of system Startup Applications. To allow monitoring the ongoing status, run `adfree.sh` as a Startup Application, or with `bash adfree.sh`. It creates a new background tmux session called `adfree`, which can be connected to with `tmux a -t adfree`. ### Maintenance: From 7be1f87b982c74fe7e6a04323f374a122eef120e Mon Sep 17 00:00:00 2001 From: smarkoco <53878603+smarkoco@users.noreply.github.com> Date: Sat, 11 Mar 2023 18:54:51 -0500 Subject: [PATCH 3/3] Update mute_spotify_timer.sh `sleep 5` makes ads leak through at the end of the advertisement, and sometimes, even between ads --- mute_spotify_timer.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/mute_spotify_timer.sh b/mute_spotify_timer.sh index 3b2aa63..1e94d29 100755 --- a/mute_spotify_timer.sh +++ b/mute_spotify_timer.sh @@ -9,7 +9,6 @@ while true; do if [[ "$name" = *"Advertisement"* || "$name" = *"Spotify"* ]] || [[ $url == *"/ad/"* ]]; then echo "Muting" ~/Spotify-Ads-Muter-Linux/mute_app.sh spotify mute - sleep 5 else echo "Unmuting" ~/Spotify-Ads-Muter-Linux/mute_app.sh spotify unmute