summaryrefslogtreecommitdiffstats
path: root/mowedline
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-01 21:18:38 +0200
committerGravatar Tom Willemse2015-06-01 21:18:38 +0200
commitaabcb90780ed014c600c9482b5f274b4d1abffbc (patch)
tree19154081f6e8008edf3dcff738936a20f8217fe5 /mowedline
parent30952ab6a52b2d0ce5c6d0044bd14908d4b1722c (diff)
downloaddotfiles-aabcb90780ed014c600c9482b5f274b4d1abffbc.tar.gz
dotfiles-aabcb90780ed014c600c9482b5f274b4d1abffbc.zip
Add mowedline configuration
Diffstat (limited to 'mowedline')
-rw-r--r--mowedline/.config/mowedline/init.scm81
1 files changed, 81 insertions, 0 deletions
diff --git a/mowedline/.config/mowedline/init.scm b/mowedline/.config/mowedline/init.scm
new file mode 100644
index 0000000..946114d
--- /dev/null
+++ b/mowedline/.config/mowedline/init.scm
@@ -0,0 +1,81 @@
+(define (string-maybe-pad-left text)
+ (if (string-null? text)
+ text
+ (string-append " " text)))
+
+;; (define (buttonize-workspaces text)
+;; (cons
+;; (if (string-prefix? "[" text) "" " ")
+;; (fold
+;; (lambda (token markup)
+;; (cons
+;; " "
+;; (cons
+;; (cond
+;; ((string-prefix? "#" token) ;; current owrkspace
+;; token)
+;; ((string-prefix? "!" token) ;; urgency notification
+;; (let ((ws (string-drop token 1)))
+;; `(button (lambda () (switch-to-desktop ,ws))
+;; (color (1 0 0 1) ,ws))))
+;; (else
+;; `(button (lambda () (switch-to-desktop ,token))
+;; ,token)))
+;; markup)))
+;; '()
+;; (reverse (string-tokenize text)))))
+
+;; (define (colorize-clock text)
+;; (list
+;; " "
+;; (let ((m (string-match
+;; '(: (submatch (* any))
+;; (submatch numeric numeric ":" numeric numeric)
+;; (submatch (* any)))
+;; text)))
+;; (cond
+;; (m (set! (third m) `(color (.73 .73 .81 1) ,(third m)))
+;; (cdr m))
+;; (else text)))
+;; " "))
+
+(text-widget-font "Fantasque Sans Mono-10:bold")
+(text-widget-color "#bfbfbf")
+(text-widget-format string-maybe-pad-left)
+(widget-background-color "#111111")
+
+(make <window>
+ 'position 'bottom
+ 'width 1920
+ 'widgets
+ (L ;; (make <text-widget>
+ ;; 'name "workspaces"
+ ;; 'format buttonize-workspaces)
+ ;; (make <flags>
+ ;; 'name "wmflags"
+ ;; 'color '(.53 .53 .53 1)
+ ;; 'flags '(("tabbed" . (color "paleturquoise3" "T"))
+ ;; ("float" . (color "firebrick3" "f"))
+ ;; ("inverse" . (color "cornflowerblue" "v"))
+ ;; ("magnifier" . (color "forestgreen" "m"))))
+ (make <text-widget>
+ 'name "title"
+ 'color '(.4 .4 .4 1)
+ 'flex 1
+ 'text "drd")
+ ;; (make <text-widget>
+ ;; 'name "rss-icon"
+ ;; 'font "FontAwesome-10"
+ ;; 'text " ")
+ ;; (make <text-widget> 'name "rss")
+ (make <flags>
+ 'name "keychain"
+ 'font "FontAwesome-10"
+ 'flags '(("Unlocked" . "")
+ ("Locked" . ""))
+ 'format identity)
+ (make <text-widget>
+ 'name "email"
+ 'format (lambda (text)
+ (list '(font "FontAwesome-10" "  ") text)))
+ (make <clock>)))