summaryrefslogtreecommitdiff
path: root/now-playing-lyrics
diff options
context:
space:
mode:
authoryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
committeryuzu-eva <cafebabe@disroot.org>2025-05-08 14:01:37 +0200
commitef7c1605a027b52bbff1b01ea693b60f53fa3a71 (patch)
tree1089334258aefbd459d18cf6968e78f1194739b0 /now-playing-lyrics
initial commit
Diffstat (limited to 'now-playing-lyrics')
-rwxr-xr-xnow-playing-lyrics12
1 files changed, 12 insertions, 0 deletions
diff --git a/now-playing-lyrics b/now-playing-lyrics
new file mode 100755
index 0000000..ce6892f
--- /dev/null
+++ b/now-playing-lyrics
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+lyrics_directory="$HOME/.config/mpd/lyrics"
+
+current_song=$(mpc current -f "[%artist% - ]%title%")
+# filename=$(basename "$current_song")
+
+current_lyrics_file_path="$lyrics_directory/$current_song".txt
+
+# tmux splitw -h "cat \"$current_lyrics_file_path\"; read"
+st -c "lyrics" -g "60x51+2655+20" -e "$SHELL" -c "less \"$current_lyrics_file_path\""
+