New backup 2025-04-07 16:00:02
This commit is contained in:
parent
c0617224bc
commit
328cfe32df
3 changed files with 13 additions and 4 deletions
|
@ -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}" : ""}))
|
||||
|
|
7
de/home/.config/eww/scripts/bar/nowplaying
Executable file
7
de/home/.config/eww/scripts/bar/nowplaying
Executable 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
|
||||
}
|
2
de/home/.config/eww/variables/bar/music.yuck
Normal file
2
de/home/.config/eww/variables/bar/music.yuck
Normal file
|
@ -0,0 +1,2 @@
|
|||
(deflisten nowplaying :initial ''
|
||||
"scripts/bar/nowplaying")
|
Loading…
Add table
Reference in a new issue