Support symbols with special characters in configuration group keys

This commit is contained in:
Tom Willemse 2022-04-02 01:35:20 -07:00
parent 670d4c73ca
commit d28afb72db

View file

@ -90,7 +90,11 @@
"\n}\n"))) "\n}\n")))
(define (format-rofi-theme theme) (define (format-rofi-theme theme)
(let ((keys (map object->string (butlast theme 1))) (let ((keys (map (lambda (s)
(if (symbol? s)
(symbol->string s)
(object->string s)))
(butlast theme 1)))
(values (car (list-tail theme (- (length theme) 1))))) (values (car (list-tail theme (- (length theme) 1)))))
(string-append (string-join keys ", ") (string-append (string-join keys ", ")
" {\n " " {\n "