From f5194cde7524b1246a06ebe4c974b697dacd5170 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 18 Jul 2025 23:00:02 -0700 Subject: [PATCH] New backup 2025-07-18 23:00:02 --- de/home/.config/eww/eww.scss | 7 +++++- .../eww/modules/home/nowplayingart.yuck | 25 +++++++++++++------ .../eww/scripts/home/nowplaying-artist.sh | 2 +- .../eww/scripts/home/nowplaying-title.sh | 2 +- de/home/.config/sway/config.d/layout | 4 +-- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index cb05123..a22d14f 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -316,7 +316,7 @@ $home-widget-border-hover-color: rgba($color5,0.3); // margin-left: 10px; } .art-button-overlay { - font-size: 2em; + font-size: 3em; background-color: rgba($color0,0.5); color: $color5; } @@ -340,6 +340,11 @@ $home-widget-border-hover-color: rgba($color5,0.3); background-color: $home-button-bg-color; border-radius: $home-button-circle-border-radius; // margin: 10px; + color: $home-button-fg-color; + transition: all 0.3s; + &:hover{ + background-color: $home-button-hover-bg-color; + } } } // .nowplayingart, diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index 2715f81..56d75e1 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -7,6 +7,7 @@ (defvar large_album_art false) (defvar small_art_overlay false) +(defvar large_art_overlay false) (defwidget nowplayingbar [] ; (centerbox (box @@ -25,6 +26,7 @@ (revealer :transition "slideright" ; :transition "slideleft" + :duration "300ms" :reveal {!large_album_art} (eventbox :onclick '${EWW_CMD} update large_album_art=true' @@ -75,6 +77,7 @@ :halign "center" :height 25 :width 25 + :onclick "playerctl previous" "") (button :class "mediabutton" @@ -82,6 +85,7 @@ :halign "center" :height 25 :width 25 + :onclick "playerctl play-pause" "󰐎") (button :class "mediabutton" @@ -89,16 +93,19 @@ :halign "center" :height 25 :width 25 + :onclick "playerctl next" "")))) ;; (nowplaying_revealer :visible false))) (revealer ; :transition "slideup" :transition "slidedown" + :duration "300ms" :reveal {large_album_art} (eventbox ; :visible {large_album_art} - :onhover '${EWW_CMD} update small_art_overlay=true' - :onhoverlost '${EWW_CMD} update small_art_overlay=false' + :onclick '${EWW_CMD} update large_album_art=false' + :onhover '${EWW_CMD} update large_art_overlay=true' + :onhoverlost '${EWW_CMD} update large_art_overlay=false' (button :height 100 :width 100 @@ -110,11 +117,15 @@ (overlay (nowplayingart :size 'big') ; :css 'margin: 20px;') - (label :class "art-button-overlay" - :height 100 - :width 100 - :visible {small_art_overlay} - :text ""))))))) + (revealer + :transition "crossfade" + :duration "300ms" + :reveal {large_art_overlay} + (label :class "art-button-overlay" + :height 100 + :width 100 + :visible {large_art_overlay} + :text "")))))))) (defwidget nowplayingart [size] (box diff --git a/de/home/.config/eww/scripts/home/nowplaying-artist.sh b/de/home/.config/eww/scripts/home/nowplaying-artist.sh index f2c642e..a9f8a8e 100755 --- a/de/home/.config/eww/scripts/home/nowplaying-artist.sh +++ b/de/home/.config/eww/scripts/home/nowplaying-artist.sh @@ -1,7 +1,7 @@ #!/bin/bash #playerctl --follow metadata --format '{{ title }}' | { -playerctl --follow metadata --format '{{ artist }}' +playerctl --follow metadata --format '{{ trunc(artist,23) }}' #playerctl metadata --format '{{ title }}\n{{ artist }}' | { # while read -r nowplaying_title; do diff --git a/de/home/.config/eww/scripts/home/nowplaying-title.sh b/de/home/.config/eww/scripts/home/nowplaying-title.sh index 1e72aeb..700905e 100755 --- a/de/home/.config/eww/scripts/home/nowplaying-title.sh +++ b/de/home/.config/eww/scripts/home/nowplaying-title.sh @@ -1,7 +1,7 @@ #!/bin/bash #playerctl --follow metadata --format '{{ title }}' | { -playerctl --follow metadata --format '{{ title }}' +playerctl --follow metadata --format '{{ trunc(title,23) }}' #playerctl metadata --format '{{ title }}\n{{ artist }}' | { # while read -r nowplaying_title; do diff --git a/de/home/.config/sway/config.d/layout b/de/home/.config/sway/config.d/layout index e85c7f3..89c85eb 100644 --- a/de/home/.config/sway/config.d/layout +++ b/de/home/.config/sway/config.d/layout @@ -7,7 +7,7 @@ workspace 0: { } # Border styling -default_border pixel 5 +default_border pixel 3 default_floating_border pixel 2 # Borders @@ -29,7 +29,7 @@ layer_effects { "swaync-notification-window" $layer_blur } -blur_brightness 0.85 +blur_brightness 0.55 blur enable shadows enable shadow_color $color5