New backup 2025-04-07 16:15:02

This commit is contained in:
Penelope Gwen 2025-04-07 16:15:02 -07:00
parent 328cfe32df
commit 181cf8076e
4 changed files with 5 additions and 3 deletions

View file

@ -66,6 +66,7 @@
(include "modules/bar/scratchpad.yuck")
;centergroup
(include "variables/bar/music.yuck")
(include "modules/bar/music.yuck")
;rightgroup

View file

@ -5,6 +5,7 @@
:revealvar-name "reveal_battery"
(button :onclick 'notify-send battery lol'
:class {(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "active" : "" }
:tooltip "${jq(EWW_BATTERY,'.[].capacity?')}%"
; {(EWW_BATTERY == "") ? "" : `${(jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? " ${jq(EWW_BATTERY,'.[].capacity?')}%" : " ${jq(EWW_BATTERY,'.[].capacity?')}%"}`})
`${(EWW_BATTERY == "" || jq(EWW_BATTERY,'.[].status?') == '"Charging"') ? "" : ""}${(EWW_BATTERY == "") ? "" : "${jq(EWW_BATTERY,'.[].capacity?')}%"}`)
(battery_children)))

View file

@ -1,5 +1,5 @@
// (deflisten music :initial ""
// "playerctl --follow metadata --format '{{ title }}' || true")
;; (deflisten music :initial ""
;; "playerctl --follow metadata --format '{{ title }}' || true")
(defwidget music []
(box :class {nowplaying != "" ? "music" : "hidden"}

View file

@ -2,6 +2,6 @@
playerctl --follow metadata --format '{{ title }}' | {
while read -r nowplaying_title; do
echo "${nowplaying_title}" | head -c 15;
echo "${nowplaying_title}" | head -c 50;
done
}