From aa765d23969119b504f995300023ab2c854fdccc Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Tue, 17 Feb 2026 12:30:02 -0800 Subject: [PATCH] New backup 2026-02-17 12:30:02 --- de/home/.config/eww/modules/bar/vpn.yuck | 8 +++++--- de/home/.config/eww/modules/home/nowplayingart.yuck | 3 ++- de/home/.config/eww/scripts/home/nowplaying.sh | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/de/home/.config/eww/modules/bar/vpn.yuck b/de/home/.config/eww/modules/bar/vpn.yuck index 8785f9e..d13e0c3 100644 --- a/de/home/.config/eww/modules/bar/vpn.yuck +++ b/de/home/.config/eww/modules/bar/vpn.yuck @@ -7,7 +7,7 @@ (button :onclick 'notify-send "TODO"' :class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}" "${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? '' : '')}") - (vpn_children :array "${network_manager.vpns}"))) + (vpn_children :array "${jq(network_manager.vpns,'.|sort_by(.name)')}"))) (defwidget vpn_children [array] (box :class "reveal-children" @@ -19,10 +19,12 @@ :class {( vpn.active == "yes" ? 'active' : 'inactive' )} :tooltip "${vpn.name}" "${( vpn.name =~ '^[Hh]ome.*' ? - ( vpn.name =~ '.*[Ff]ull.*' ? '' : '') : + ( vpn.name =~ '.*[Ff]ull.*' ? '' : '') : ( vpn.name =~ '^pia-.*' ? ( vpn.name =~ '.*local.*' ? '' : '' ) : - '' ) + ( vpn.name == 'SCA' ? + '' : + '') ) )} ${( vpn.active == 'yes' ? '' : '' )}" ) ) diff --git a/de/home/.config/eww/modules/home/nowplayingart.yuck b/de/home/.config/eww/modules/home/nowplayingart.yuck index b04bd1c..53c8681 100644 --- a/de/home/.config/eww/modules/home/nowplayingart.yuck +++ b/de/home/.config/eww/modules/home/nowplayingart.yuck @@ -14,7 +14,8 @@ (defwidget nowplayingbar [] ; (centerbox (box - :visible {jq(nowplaying_info,'.title','r') != ""} + :visible true +; :visible {jq(nowplaying_info,'.title','r') != ""} :orientation 'v' :class "nowplayingbar" :space-evenly false diff --git a/de/home/.config/eww/scripts/home/nowplaying.sh b/de/home/.config/eww/scripts/home/nowplaying.sh index ecaf9d0..37c29ab 100755 --- a/de/home/.config/eww/scripts/home/nowplaying.sh +++ b/de/home/.config/eww/scripts/home/nowplaying.sh @@ -1,3 +1,3 @@ #!/bin/bash -playerctl --follow metadata --format '{"status":"{{lc(status)}}","artist":"{{artist}}","title":"{{trunc(title,23)}}"}' +playerctl --follow metadata --format '{"status":"{{lc(status)}}","artist":"{{artist}}","title":"{{markup_escape(trunc(title,23))}}"}'