summaryrefslogtreecommitdiffstats
path: root/mowedline
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-17 11:00:28 +0200
committerGravatar Tom Willemse2015-06-17 11:00:28 +0200
commit353fe31aad3b648a8b4764a472f4f1fd995a4769 (patch)
treede5be105aa0f56f2ce1e7697e8884167a0cfb0c4 /mowedline
parent04f867ce3994cdc25bdd235f8247ead00ba81efa (diff)
downloaddotfiles-353fe31aad3b648a8b4764a472f4f1fd995a4769.tar.gz
dotfiles-353fe31aad3b648a8b4764a472f4f1fd995a4769.zip
Update mowedline contents
Diffstat (limited to 'mowedline')
-rw-r--r--mowedline/.config/mowedline/init.scm40
1 files 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 <text-widget>
- ;; 'name "workspaces"
- ;; 'format buttonize-workspaces)
- (widget:text
- '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")
+ '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))