From 80cc22804b854cecde11cfff0d7156c4d33747f7 Mon Sep 17 00:00:00 2001 From: xeals Date: Tue, 15 Jan 2019 21:33:41 +1100 Subject: [PATCH] feat(sidebar): add task list --- module/sidebar.fnl | 4 ++-- widget/task-list.fnl | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/module/sidebar.fnl b/module/sidebar.fnl index 27e833f..eab3939 100644 --- a/module/sidebar.fnl +++ b/module/sidebar.fnl @@ -49,9 +49,9 @@ (: s.sb :setup {:layout wibox.layout.align.vertical 1 {1 (border (tag-list s)) - ;; 2 (task-list s) :layout wibox.layout.fixed.vertical} - 2 nil + 2 {1 (border (center (task-list s)) 4) + :layout wibox.layout.flex.vertical} 3 {1 (center systray) 2 (center battery.widget) 3 {1 (border diff --git a/widget/task-list.fnl b/widget/task-list.fnl index fef9aca..2b14ee5 100644 --- a/widget/task-list.fnl +++ b/widget/task-list.fnl @@ -3,6 +3,7 @@ ;;; Code: (local awful (require :awful)) +(local wibox (require :wibox)) ;;; ;; Functions @@ -10,9 +11,11 @@ (fn task-list [s] (awful.widget.tasklist s - awful.widget.tasklist.filter.currenttags + awful.widget.tasklist.filter.minimizedcurrenttags {} {:disable_task_name true} + awful.widget.common.list_update + (wibox.layout.fixed.vertical) ))