New backup 2025-07-18 23:00:02

This commit is contained in:
Penelope Gwen 2025-07-18 23:00:02 -07:00
parent d9b9b3a380
commit f5194cde75
5 changed files with 28 additions and 12 deletions

View file

@ -316,7 +316,7 @@ $home-widget-border-hover-color: rgba($color5,0.3);
// margin-left: 10px; // margin-left: 10px;
} }
.art-button-overlay { .art-button-overlay {
font-size: 2em; font-size: 3em;
background-color: rgba($color0,0.5); background-color: rgba($color0,0.5);
color: $color5; color: $color5;
} }
@ -340,6 +340,11 @@ $home-widget-border-hover-color: rgba($color5,0.3);
background-color: $home-button-bg-color; background-color: $home-button-bg-color;
border-radius: $home-button-circle-border-radius; border-radius: $home-button-circle-border-radius;
// margin: 10px; // margin: 10px;
color: $home-button-fg-color;
transition: all 0.3s;
&:hover{
background-color: $home-button-hover-bg-color;
}
} }
} }
// .nowplayingart, // .nowplayingart,

View file

@ -7,6 +7,7 @@
(defvar large_album_art false) (defvar large_album_art false)
(defvar small_art_overlay false) (defvar small_art_overlay false)
(defvar large_art_overlay false)
(defwidget nowplayingbar [] (defwidget nowplayingbar []
; (centerbox ; (centerbox
(box (box
@ -25,6 +26,7 @@
(revealer (revealer
:transition "slideright" :transition "slideright"
; :transition "slideleft" ; :transition "slideleft"
:duration "300ms"
:reveal {!large_album_art} :reveal {!large_album_art}
(eventbox (eventbox
:onclick '${EWW_CMD} update large_album_art=true' :onclick '${EWW_CMD} update large_album_art=true'
@ -75,6 +77,7 @@
:halign "center" :halign "center"
:height 25 :height 25
:width 25 :width 25
:onclick "playerctl previous"
"") "")
(button (button
:class "mediabutton" :class "mediabutton"
@ -82,6 +85,7 @@
:halign "center" :halign "center"
:height 25 :height 25
:width 25 :width 25
:onclick "playerctl play-pause"
"󰐎") "󰐎")
(button (button
:class "mediabutton" :class "mediabutton"
@ -89,16 +93,19 @@
:halign "center" :halign "center"
:height 25 :height 25
:width 25 :width 25
:onclick "playerctl next"
"")))) ""))))
;; (nowplaying_revealer :visible false))) ;; (nowplaying_revealer :visible false)))
(revealer (revealer
; :transition "slideup" ; :transition "slideup"
:transition "slidedown" :transition "slidedown"
:duration "300ms"
:reveal {large_album_art} :reveal {large_album_art}
(eventbox (eventbox
; :visible {large_album_art} ; :visible {large_album_art}
:onhover '${EWW_CMD} update small_art_overlay=true' :onclick '${EWW_CMD} update large_album_art=false'
:onhoverlost '${EWW_CMD} update small_art_overlay=false' :onhover '${EWW_CMD} update large_art_overlay=true'
:onhoverlost '${EWW_CMD} update large_art_overlay=false'
(button (button
:height 100 :height 100
:width 100 :width 100
@ -110,11 +117,15 @@
(overlay (overlay
(nowplayingart :size 'big') (nowplayingart :size 'big')
; :css 'margin: 20px;') ; :css 'margin: 20px;')
(label :class "art-button-overlay" (revealer
:height 100 :transition "crossfade"
:width 100 :duration "300ms"
:visible {small_art_overlay} :reveal {large_art_overlay}
:text ""))))))) (label :class "art-button-overlay"
:height 100
:width 100
:visible {large_art_overlay}
:text ""))))))))
(defwidget nowplayingart [size] (defwidget nowplayingart [size]
(box (box

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#playerctl --follow metadata --format '{{ title }}' | { #playerctl --follow metadata --format '{{ title }}' | {
playerctl --follow metadata --format '{{ artist }}' playerctl --follow metadata --format '{{ trunc(artist,23) }}'
#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

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
#playerctl --follow metadata --format '{{ title }}' | { #playerctl --follow metadata --format '{{ title }}' | {
playerctl --follow metadata --format '{{ title }}' playerctl --follow metadata --format '{{ trunc(title,23) }}'
#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

@ -7,7 +7,7 @@ workspace 0: {
} }
# Border styling # Border styling
default_border pixel 5 default_border pixel 3
default_floating_border pixel 2 default_floating_border pixel 2
# Borders # Borders
@ -29,7 +29,7 @@ layer_effects {
"swaync-notification-window" $layer_blur "swaync-notification-window" $layer_blur
} }
blur_brightness 0.85 blur_brightness 0.55
blur enable blur enable
shadows enable shadows enable
shadow_color $color5 shadow_color $color5