#eww script

5 messages · Page 1 of 1 (latest)

thorny relic
#

(defwidget music-button []
(button :onclick "playerctl play-pause"
"${music_data == '▶' ? '\⏸' : music_data.status == 'Playing' ? '\⏸' : '▶'}"))

(deflisten music_data
:initial {"status": ""}
`
playerctl metadata --format '{ "status": "{{status}}", "artist": "{{artist}}", "title": "{{title}}"}' || echo '{"status": ""}';

playerctl --follow metadata --format '{ "status": "{{status}}", "artist": "{{artist}}", "title": "{{title}}"}'

`)

vast current
#

I'm not sure what I'm looking at exactly. Did some of this show up as terminal output?

unique gorge
#

some sort of widget?
copypasta or this is yours?

vast current
#

I'm trying to figure out what language it's written in. For whatever reason my first thought from the parentheses is lisp.