diff --git a/modules/home/scripts/scripts/lofi.sh b/modules/home/scripts/scripts/lofi.sh index 53bff15..ded851b 100644 --- a/modules/home/scripts/scripts/lofi.sh +++ b/modules/home/scripts/scripts/lofi.sh @@ -1,3 +1,7 @@ #!/usr/bin/env bash -mpv --no-video https://www.youtube.com/live/jfKfPfyJRdk?si=OF0HKrYFFj33BzMo \ No newline at end of file +if (ps aux | grep Skype | grep -v grep > /dev/null) + pkill mpv +else + mpv --no-video https://www.youtube.com/live/jfKfPfyJRdk?si=OF0HKrYFFj33BzMo +fi \ No newline at end of file diff --git a/modules/home/scripts/scripts/music.sh b/modules/home/scripts/scripts/music.sh index e812055..1c6f2d2 100644 --- a/modules/home/scripts/scripts/music.sh +++ b/modules/home/scripts/scripts/music.sh @@ -1,12 +1,10 @@ #!/usr/bin/env bash -if [[ $# == 0 ]]; then +if (ps aux | grep Skype | grep -v grep > /dev/null) + pkill audacious +else hyprctl dispatch exec "[workspace 8 silent] audacious -t" sleep 0.5 audtool playlist-repeat-status |grep "on" || audtool playlist-repeat-toggle audtool playlist-shuffle-status|grep "on" || audtool playlist-shuffle-toggle -elif [[ $1 == -s ]]; then - pkill audacious -else - echo "[ERROR] => Wrong argument..." fi \ No newline at end of file