From 353fe31aad3b648a8b4764a472f4f1fd995a4769 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 17 Jun 2015 11:00:28 +0200 Subject: [PATCH] Update mowedline contents --- mowedline/.config/mowedline/init.scm | 40 ++++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/mowedline/.config/mowedline/init.scm b/mowedline/.config/mowedline/init.scm index 67d6359..308b2cb 100644 --- a/mowedline/.config/mowedline/init.scm +++ b/mowedline/.config/mowedline/init.scm @@ -3,6 +3,14 @@ text (string-append " " text))) +(define (add-fa-icon icon) + (lambda (text) + (if (string-null? text) + text + (list (list 'font "FontAwesome-10" + (string-append " " icon " ")) + text)))) + (text-widget-font "Fantasque Sans Mono-13:bold") (text-widget-color "#ededed") (text-widget-format string-maybe-pad-left) @@ -10,28 +18,20 @@ (window 'position 'bottom - 'width 1920 - ;; (make - ;; 'name "workspaces" - ;; 'format buttonize-workspaces) - (widget:text - 'name "title" - 'color '(.4 .4 .4 1) - 'flex 1 - 'text "drd") - ;; (make - ;; 'name "rss-icon" - ;; 'font "FontAwesome-10" - ;; 'text " ") - ;; (make 'name "rss") + 'width 1890 + 'margin-bottom 15 + 'margin-left 15 + 'margin-right 15 + (widget:spacer 'width 5) + (widget:text 'name "title" 'text "drd") + (widget:spacer 'width 10) + (widget:text 'name "mpd" 'format (add-fa-icon "") 'flex 1) (widget:flags 'name "keychain" 'font "FontAwesome-10" 'flags '(("Unlocked" . "") ("Locked" . "")) - 'format identity) - (widget:text - 'name "email" - 'format (lambda (text) - (list '(font "FontAwesome-10" "  ") text))) - (widget:clock)) + 'format text-maybe-pad-left) + (widget:text 'name "email" 'format (add-fa-icon "")) + (widget:clock) + (widget:spacer 'width 5))