New backup 2026-02-17 12:30:02

This commit is contained in:
Penelope Gwen 2026-02-17 12:30:02 -08:00
parent 4b4ffcb784
commit aa765d2396
3 changed files with 8 additions and 5 deletions

View file

@ -7,7 +7,7 @@
(button :onclick 'notify-send "TODO"' (button :onclick 'notify-send "TODO"'
:class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}" :class "revealer-preview ${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? 'active' : 'inactive')}"
"${(jq(network_manager.vpns, '[ .[] | select(.active=="yes") ] | length') > 0 ? '' : '')}") "${(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] (defwidget vpn_children [array]
(box :class "reveal-children" (box :class "reveal-children"
@ -22,7 +22,9 @@
( vpn.name =~ '.*[Ff]ull.*' ? '' : '') : ( vpn.name =~ '.*[Ff]ull.*' ? '' : '') :
( vpn.name =~ '^pia-.*' ? ( vpn.name =~ '^pia-.*' ?
( vpn.name =~ '.*local.*' ? '' : '' ) : ( vpn.name =~ '.*local.*' ? '' : '' ) :
'' ) ( vpn.name == 'SCA' ?
'' :
'') )
)} ${( vpn.active == 'yes' ? '' : '' )}" )} ${( vpn.active == 'yes' ? '' : '' )}"
) )
) )

View file

@ -14,7 +14,8 @@
(defwidget nowplayingbar [] (defwidget nowplayingbar []
; (centerbox ; (centerbox
(box (box
:visible {jq(nowplaying_info,'.title','r') != ""} :visible true
; :visible {jq(nowplaying_info,'.title','r') != ""}
:orientation 'v' :orientation 'v'
:class "nowplayingbar" :class "nowplayingbar"
:space-evenly false :space-evenly false

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/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))}}"}'