diff options
| author | marcellus <msimon_fr@hotmail.com> | 2024-04-17 11:10:25 +0200 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2024-04-17 11:10:25 +0200 |
| commit | 0173c966ca715c14c9483b2e5e44d27173604638 (patch) | |
| tree | 922a7a42d8a84e420b337f65f6c665b642026918 /scripts/musiccmd | |
| parent | 9dc92655116548e0e2be487b048f336cc9a5f148 (diff) | |
updates: read the diff
Diffstat (limited to 'scripts/musiccmd')
| -rwxr-xr-x | scripts/musiccmd | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/musiccmd b/scripts/musiccmd index ecaf437..3407434 100755 --- a/scripts/musiccmd +++ b/scripts/musiccmd @@ -65,13 +65,6 @@ getthumbnail() { main() { - if ! pgrep -x music >/dev/null; then - kill -35 "$(pidof dwmblocks)" - herbe "Error: There is no music playing"\ - "Do you want to play some ?" && - music - return 1 - fi cmd="${1:-$(printf '⏯️pause/play\n⏭️next\n⏮️prev\n📢volume\n🔳stop ⭐favorite\n⬇️download\n🖼️thumbnail' | dmenu -i -p "musiccmd")}" @@ -90,7 +83,7 @@ main() { | socat - /tmp/mpvsocket 1> /dev/null ;; *stop) printf 'stop\n' | socat - /tmp/mpvsocket - kill -35 "$(pidof dwmblocks)" ;; + pidof dwmblocks && kill -35 "$(pidof dwmblocks)" ;; *favorite|fav) getpath addtofav ;; |
