update play-pause script
This commit is contained in:
+3
-2
@@ -1,8 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
PLAYLIST_DIR="/home/user/Music/Playlists/"
|
||||
BASENAME="/home/user/Music/$SELECTED_SONGS"
|
||||
echo $BASENAME | kitty +kitten clipboard
|
||||
if grep -q "$BASENAME" $PLAYLIST_DIR/*.m3u
|
||||
# echo $BASENAME | kitty +kitten clipboard
|
||||
shopt -s extglob
|
||||
if grep -q "$BASENAME" "$PLAYLIST_DIR"/!(new).m3u
|
||||
then
|
||||
notify-send "Song is in a playlist";
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user