From b4c2f14d3fc9bae8f45ec8ee3f059c9842cc70b9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 7 Apr 2020 18:35:58 +0300 Subject: focus can be stopped --- .config/polybar/config##c.desktop,h.Maus | 1 + .taskrc##c.desktop,h.Maus | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config##c.desktop,h.Maus b/.config/polybar/config##c.desktop,h.Maus index d074d43..46683f3 100644 --- a/.config/polybar/config##c.desktop,h.Maus +++ b/.config/polybar/config##c.desktop,h.Maus @@ -62,6 +62,7 @@ tray-position = right [module/focus] type = custom/script exec = ~/.config/polybar/focus +double-click-left = exec ~/.config/polybar/stop & interval = 10 [module/spotify] diff --git a/.taskrc##c.desktop,h.Maus b/.taskrc##c.desktop,h.Maus index d6e0a23..260d079 100644 --- a/.taskrc##c.desktop,h.Maus +++ b/.taskrc##c.desktop,h.Maus @@ -62,11 +62,17 @@ report.todoConky.filter = status:pending and due.after:now and due.before:l report.todoConky.dateformat = D-M-y H:N (A) ### report for focus script -report.custom_focus.columns = description -report.custom_focus.labels = Description +report.custom_focus.columns = description,start.age +report.custom_focus.labels = Description,active report.custom_focus.description = Task to feed to focus script report.custom_focus.filter = status:pending and +ACTIVE +### report for stopping the focused task +report.custom_stop.columns = id +report.custom_stop.labels = ID +report.custom_stop.description = Task id to feed to stop script +report.custom_stop.filter = status:pending and +ACTIVE + ### contexts context.home = +@home or +@online context.work = +@work or +@online -- cgit v1.2.3-70-g09d2