New backup 2025-07-18 19:30:01

This commit is contained in:
Penelope Gwen 2025-07-18 19:30:01 -07:00
parent eb3794e329
commit f40ee9af4c
4 changed files with 27 additions and 15 deletions

View file

@ -305,7 +305,7 @@ $home-widget-border-hover-color: rgba($color5,0.3);
background-color: $home-widget-bg-color; background-color: $home-widget-bg-color;
// .nowplayingart, // .nowplayingart,
.mediadetails { .mediadetails {
margin: 0px 25px 0px 15px; margin: 10px 25px 10px 15px;
label { label {
margin: 0px; margin: 0px;
} }

View file

@ -1,5 +1,9 @@
(deflisten nowplaying_img_path :initial "" (deflisten nowplaying_imgpath :initial ""
'scripts/home/nowplayingart.sh') 'scripts/home/nowplayingart.sh')
(deflisten nowplaying_title :initial ""
'scripts/home/nowplaying-title.sh')
(deflisten nowplaying_artist :initial ""
'scripts/home/nowplaying-artist.sh')
(defvar large_album_art false) (defvar large_album_art false)
(defwidget nowplayingbar [] (defwidget nowplayingbar []
@ -25,15 +29,12 @@
(box (box
:class "mediadetails ${large_album_art ? 'fullwidth' : ''}" :class "mediadetails ${large_album_art ? 'fullwidth' : ''}"
:orientation "v" :orientation "v"
:space-evenly false :space-evenly true
:halign "fill" :halign "fill"
:hexpand true :hexpand true
(label (label
:text "󰎇 song title") :text "󰎇 ${nowplaying_title}
(label 󰠃 ${nowplaying_artist}")
:text "󰠃 song artist")
(label
:text "󰀥 album name")
(box (box
:orientation "h" :orientation "h"
:space-evenly true :space-evenly true
@ -67,11 +68,8 @@
(defwidget nowplayingart [] (defwidget nowplayingart []
(box (box
:class "nowplayingart" :class "nowplayingart"
; :preserve-aspect-ratio true
:hexpand false :hexpand false
:width 100 :width 100
:height 100 :height 100
; :path '${nowplaying_img_path}')) ; :path '${nowplaying_imgpath}'))
; :style "background-image: url('/run/user/1000/album_art_cache/getCoverArt.view?id=952&u=pogmommy&p=mG%232001068485&v=1.13.0&c=Feishin&size=300');")) :style "background-image: url('${nowplaying_imgpath}');"))
:style "background-image: url('${nowplaying_img_path}');"))
; :style "background-image: url('${rat_image}');"))

View file

@ -1,8 +1,7 @@
#!/bin/bash #!/bin/bash
#playerctl --follow metadata --format '{{ title }}' | { #playerctl --follow metadata --format '{{ title }}' | {
playerctl metadata --format '{{ title }} playerctl --follow metadata --format '{{ artist }}'
{{ artist }}'
#playerctl metadata --format '{{ title }}\n{{ artist }}' | { #playerctl metadata --format '{{ title }}\n{{ artist }}' | {
# while read -r nowplaying_title; do # while read -r nowplaying_title; do

View file

@ -0,0 +1,15 @@
#!/bin/bash
#playerctl --follow metadata --format '{{ title }}' | {
playerctl --follow metadata --format '{{ title }}'
#playerctl metadata --format '{{ title }}\n{{ artist }}' | {
# while read -r nowplaying_title; do
# if [ ${#nowplaying_title} -ge 45 ];then
# echo "${nowplaying_title:0:40}…"
# else
# echo "${nowplaying_title}"
# fi
# echo "${nowplaying_title}" | head -c 50;
# done
#}