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"'
: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' ? '' : '' )}"
)
)

View file

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

View file

@ -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))}}"}'