diff options
| -rwxr-xr-x | .config/polybar/focus | 11 | ||||
| -rw-r--r-- | .taskrc | 6 |
2 files changed, 12 insertions, 5 deletions
diff --git a/.config/polybar/focus b/.config/polybar/focus index 0cccea4..8eeb92a 100755 --- a/.config/polybar/focus +++ b/.config/polybar/focus | |||
| @@ -19,9 +19,9 @@ use strict; | |||
| 19 | use warnings; | 19 | use warnings; |
| 20 | use IO::CaptureOutput qw/capture_exec/; | 20 | use IO::CaptureOutput qw/capture_exec/; |
| 21 | 21 | ||
| 22 | my ($stdout, $stderr, $success, $exit_code) = capture_exec("task active"); | 22 | my ($stdout, $stderr, $success, $exit_code) = capture_exec("task custom_focus"); |
| 23 | 23 | ||
| 24 | #print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n"); | 24 | # print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n"); |
| 25 | 25 | ||
| 26 | if ($stderr =~ /No matches\./) { | 26 | if ($stderr =~ /No matches\./) { |
| 27 | system 'echo "What a beautiful day"'; | 27 | system 'echo "What a beautiful day"'; |
| @@ -37,6 +37,7 @@ my $task = $lines[2]; | |||
| 37 | $task =~ s/^\s+|\s+$//g; | 37 | $task =~ s/^\s+|\s+$//g; |
| 38 | $task =~ s/\s+/ /g; | 38 | $task =~ s/\s+/ /g; |
| 39 | 39 | ||
| 40 | if ($task =~ m/.*?next (.*)$/) { | 40 | # if ($task =~ m/.*?next (.*)$/) { |
| 41 | print "$1"; | 41 | # print "$1"; |
| 42 | } | 42 | # } |
| 43 | print $task; | ||
| @@ -58,6 +58,12 @@ report.todoConky.sort = due+ | |||
| 58 | report.todoConky.filter = status:pending and due.after:now and due.before:later | 58 | report.todoConky.filter = status:pending and due.after:now and due.before:later |
| 59 | report.todoConky.dateformat = D-M-y H:N (A) | 59 | report.todoConky.dateformat = D-M-y H:N (A) |
| 60 | 60 | ||
| 61 | ### report for focus script | ||
| 62 | report.custom_focus.columns = description | ||
| 63 | report.custom_focus.labels = Description | ||
| 64 | report.custom_focus.description = Task to feed to focus script | ||
| 65 | report.custom_focus.filter = status:pending and +ACTIVE | ||
| 66 | |||
| 61 | ### contexts | 67 | ### contexts |
| 62 | context.home = +@home or +@online | 68 | context.home = +@home or +@online |
| 63 | context.work = +@work or +@online | 69 | context.work = +@work or +@online |
