Allow for string-interpolation in simplexpr

This commit is contained in:
elkowar
2021-07-30 16:29:04 +02:00
parent 41093cf0af
commit 5cde0228fb
28 changed files with 550 additions and 262 deletions

View File

@@ -38,11 +38,14 @@
(defwidget time []
(box :class "time"
{hour + ":" + min + " " + month + " " + number_day + ", " + year_full}))
{"{hour}:{min} {month + "the month" * 2} {number_day}, {year_full}"}))
;{hour + ":" + min + " " + month + " " + number_day + ", " + year_full}))
(defvar music "bruh")
(defpoll music :interval "5s" "playerctl metadata --format '{{ artist }} - {{ title }}' || true")
(defpoll volume :interval "16s" "scripts/getvol")
;(defpoll music :interval "5s" "playerctl metadata --format '{{ artist }} - {{ title }}' || true")
(defvar volume "20")
;(defpoll volume :interval "16s" "scripts/getvol")
(defpoll number_day :interval "5h" "date '+%d'")
(defpoll month :interval "10h" "date '+%b'")