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 -------------- .local/bin/cmus/toggle-shuf | 7 ------- 2 files changed, 21 deletions(-) delete mode 100755 .local/bin/cmus/toggle-mode delete mode 100755 .local/bin/cmus/toggle-shuf (limited to '.local/bin/cmus') 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 diff --git a/.local/bin/cmus/toggle-shuf b/.local/bin/cmus/toggle-shuf deleted file mode 100755 index 57c2606..0000000 --- a/.local/bin/cmus/toggle-shuf +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# Toggle and report status of shuffle mode in cmus - -cmus-remote --shuffle -status=$(cmus-remote -Q | grep shuffle | cut -d ' ' -f 3) -dunstctl close-all -[ "$status" = "true" ] && notify-send "Shuffle on" || notify-send "Shuffle off" -- cgit v1.2.3