Allow for string-interpolation in simplexpr
This commit is contained in:
@@ -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'")
|
||||
|
||||
Reference in New Issue
Block a user