diff --git a/mowedline/.config/mowedline/init.scm b/mowedline/.config/mowedline/init.scm index d4f48ff..6d124e5 100644 --- a/mowedline/.config/mowedline/init.scm +++ b/mowedline/.config/mowedline/init.scm @@ -3,11 +3,6 @@ (define (not-text? text) (or (null? text) (and (not (pair? text)) (string-null? text)))) -(define (string-maybe-pad-left text) - (if (not-text? text) - text - (L " " text))) - (define (text-maybe-pad-both text) (if (not-text? text) text @@ -21,9 +16,6 @@ (string-append " " icon " ")) text)))) -(define (merge . lists) - (flatten (apply zip lists))) - (define (split-tag-list str) (map string->list (string-split str "\t"))) @@ -54,7 +46,7 @@ 'margin-right 15 'background 'transparent (widget:text 'name "taglist" - 'format (compose string-maybe-pad-left tag-list-formatter)) + 'format (compose text-maybe-pad-left tag-list-formatter)) (widget:spacer 'width 5) (widget:active-window-title) (widget:spacer 'flex 1) @@ -62,8 +54,7 @@ 'format (add-fa-icon "") 'background-color "#111111") (widget:spacer 'width 5) - (widget:text 'name "irclist" - 'background-color "#111111") + (widget:text 'name "irclist" 'format identity) (widget:spacer 'width 5) (widget:text 'name "email" 'format (compose text-maybe-pad-both (add-fa-icon "")))