New backup 2025-04-07 16:00:02

This commit is contained in:
Penelope Gwen 2025-04-07 16:00:02 -07:00
parent c0617224bc
commit 328cfe32df
3 changed files with 13 additions and 4 deletions

View file

@ -1,9 +1,9 @@
(deflisten music :initial ""
"playerctl --follow metadata --format '{{ title }}' || true")
// (deflisten music :initial ""
// "playerctl --follow metadata --format '{{ title }}' || true")
(defwidget music []
(box :class {music != "" ? "music" : "hidden"}
(box :class {nowplaying != "" ? "music" : "hidden"}
:orientation "h"
:space-evenly false
:halign "center"
{music != "" ? "🎵${music}" : ""}))
{nowplaying != "" ? "🎵${nowplaying}" : ""}))

View file

@ -0,0 +1,7 @@
#!/bin/bash
playerctl --follow metadata --format '{{ title }}' | {
while read -r nowplaying_title; do
echo "${nowplaying_title}" | head -c 15;
done
}

View file

@ -0,0 +1,2 @@
(deflisten nowplaying :initial ''
"scripts/bar/nowplaying")