eww; lyrics widget

This commit is contained in:
2025-06-23 06:16:58 +02:00
parent fbe156fa6c
commit e769385bcf
11 changed files with 654 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
STATE_DIR="$HOME/.local/state/eww/lyrics"
if [ ! -d $STATE_DIR ]; then
mkdir -p $STATE_DIR
fi
OFFSET_FILE="$STATE_DIR/offset"
if [ ! -f "$OFFSET_FILE" ]; then
echo "0" > "$OFFSET_FILE"
fi
spotify-lyrics print -l 3 -O $(cat "$OFFSET_FILE")