|
@@ -18,14 +18,19 @@
|
|
(defvar *bg* NIL)
|
|
(defvar *bg* NIL)
|
|
(defvar *style* NIL)
|
|
(defvar *style* NIL)
|
|
|
|
|
|
|
|
+;; Battery
|
|
|
|
+(defvar *display-battery* NIL)
|
|
|
|
+
|
|
(defun reload-config ()
|
|
(defun reload-config ()
|
|
(setf *config* (config-parse "~/Repos/cl-pest/config.toml"))
|
|
(setf *config* (config-parse "~/Repos/cl-pest/config.toml"))
|
|
(setf *fg* (if *config*
|
|
(setf *fg* (if *config*
|
|
- (destructuring-bind (r g b) (subseq (assoc "fg" (cdr (assoc "colors" *config* :test #'equal)) :test #'equal) (- 4 3))
|
|
|
|
|
|
+ (destructuring-bind (r g b)
|
|
|
|
+ (subseq (assoc "fg" (cdr (assoc "colors" *config* :test #'equal)) :test #'equal) (- 4 3))
|
|
(chlorophyll:create-rgb-color r g b))
|
|
(chlorophyll:create-rgb-color r g b))
|
|
(chlorophyll:create-rgb-color 255 255 255)))
|
|
(chlorophyll:create-rgb-color 255 255 255)))
|
|
(setf *bg* (if *config*
|
|
(setf *bg* (if *config*
|
|
- (destructuring-bind (r g b) (subseq (assoc "bg" (cdr (assoc "colors" *config* :test #'equal)) :test #'equal) (- 4 3))
|
|
|
|
|
|
+ (destructuring-bind (r g b)
|
|
|
|
+ (subseq (assoc "bg" (cdr (assoc "colors" *config* :test #'equal)) :test #'equal) (- 4 3))
|
|
(chlorophyll:create-rgb-color r g b))
|
|
(chlorophyll:create-rgb-color r g b))
|
|
(chlorophyll:create-rgb-color 0 0 0)))
|
|
(chlorophyll:create-rgb-color 0 0 0)))
|
|
(setf *style* (chlorophyll:new-style
|
|
(setf *style* (chlorophyll:new-style
|