change scripts

This commit is contained in:
Frost-Phoenix 2023-11-13 23:29:09 +01:00
parent f495552350
commit b0d9ad14c3
2 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,7 @@
#!/usr/bin/env bash
mpv --no-video https://www.youtube.com/live/jfKfPfyJRdk?si=OF0HKrYFFj33BzMo
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

View file

@ -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