New backup 2026-02-17 12:30:02
This commit is contained in:
parent
4b4ffcb784
commit
aa765d2396
3 changed files with 8 additions and 5 deletions
|
|
@ -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"
|
||||||
|
|
@ -19,10 +19,12 @@
|
||||||
:class {( vpn.active == "yes" ? 'active' : 'inactive' )}
|
:class {( vpn.active == "yes" ? 'active' : 'inactive' )}
|
||||||
:tooltip "${vpn.name}"
|
:tooltip "${vpn.name}"
|
||||||
"${( vpn.name =~ '^[Hh]ome.*' ?
|
"${( vpn.name =~ '^[Hh]ome.*' ?
|
||||||
( 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' ? '' : '' )}"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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))}}"}'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue