From 9e82c96713989a7565eadac505b36e3dbe91cd5a Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 11 Jun 2023 07:56:17 -0400 Subject: Added, removed, renamed scripts --- .local/bin/cmus/toggle-mode | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 .local/bin/cmus/toggle-mode (limited to '.local/bin/cmus/toggle-mode') diff --git a/.local/bin/cmus/toggle-mode b/.local/bin/cmus/toggle-mode deleted file mode 100755 index e73edc6..0000000 --- a/.local/bin/cmus/toggle-mode +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Toggles the cmus aaa mode (all,album,artist) - -cmus-remote -C "toggle aaa_mode" -mode=$(cmus-remote -Q | grep "aaa_mode" | cut -d ' ' -f 3) -artist=$(cmus-remote -Q | grep "tag artist" | cut -d ' ' -f 3-) -album=$(cmus-remote -Q | grep "tag album" | cut -d ' ' -f 3-) - -[ "$mode" = "all" ] && dunstctl close-all && notify-send "Playing from full library" \ - && exit -[ "$mode" = "artist" ] && dunstctl close-all && notify-send "Playing by artist: $artist" \ - && exit -[ "$mode" = "album" ] && dunstctl close-all && notify-send "Playing from album: $album" \ - && exit -- cgit v1.2.3