commit 065d96a19dd45c1a00c64c07cee58581ee924e56
parent c82730c1f21f0c2e3f22614e2b44da5ffce909ef
Author: pyratebeard <root@pyratebeard.net>
Date: Wed, 31 Jan 2024 15:29:03 +0000
XDG changes
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmus/.config/cmus/cmus-status-display b/cmus/.config/cmus/cmus-status-display
@@ -19,7 +19,7 @@
output()
{
# write status to ~/cmus-status.txt (not very useful though)
- echo "$*" >> ~/.cmus/wmt.txt 2>&1
+ echo "$*" >> ~/.config/cmus/wmt.txt 2>&1
# WMI (http://wmi.modprobe.de/)
#wmiremote -t "$*" &> /dev/null
@@ -35,7 +35,7 @@ done
if test -n "$_file" && test -n "$_title" && [[ "$_status" == "playing" ]] ; then
if [[ $(cmus-remote -Q | grep "set play_library" | awk '{print $NF}') == "false" ]] ; then
_underscore=$(echo $_title | sed 's/\ /_/g')
- _playlist=$(grep -i -e "$_title\|$_underscore" ~/.cmus/playlists/* | awk -F: '{print $1}' | awk -F/ '{print $NF}' | head -n1)
+ _playlist=$(grep -i -e "$_title\|$_underscore" ~/.config/cmus/playlists/* | awk -F: '{print $1}' | awk -F/ '{print $NF}' | head -n1)
test -n "$_playlist" && output "custom $_playlist playlist"
elif [[ $(cmus-remote -Q | grep "set play_library" | awk '{print $NF}') == "true" ]] ; then
output "$_album by $_artist"
diff --git a/cmus/.local/bin/wmt b/cmus/.local/bin/wmt
@@ -10,7 +10,7 @@
# w e e k l y m u s i c t o o t
# output of cmus-status-display script
-music_list="$HOME/.cmus/wmt.txt"
+music_list="$HOME/.config/cmus/wmt.txt"
[ -f ${music_list} ] || exit 1