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;
}
.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,

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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