summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2019-04-06 16:11:35 +0300
committerYigit Sever2019-04-06 16:11:35 +0300
commit73567b5346b9af88655e2b0db24b1bd460c91fe1 (patch)
treed24ba4bf499a615cf21ff046122ffd8589fa35b1
parent72ad5f6cb9d946716bb3b0c632c9777ae88f0c81 (diff)
downloaddotfiles-73567b5346b9af88655e2b0db24b1bd460c91fe1.tar.gz
dotfiles-73567b5346b9af88655e2b0db24b1bd460c91fe1.tar.bz2
dotfiles-73567b5346b9af88655e2b0db24b1bd460c91fe1.zip
Fix focus script task name length constraint
-rwxr-xr-x.config/polybar/focus11
-rw-r--r--.taskrc6
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;
19use warnings; 19use warnings;
20use IO::CaptureOutput qw/capture_exec/; 20use IO::CaptureOutput qw/capture_exec/;
21 21
22my ($stdout, $stderr, $success, $exit_code) = capture_exec("task active"); 22my ($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
26if ($stderr =~ /No matches\./) { 26if ($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
40if ($task =~ m/.*?next (.*)$/) { 40# if ($task =~ m/.*?next (.*)$/) {
41 print "$1"; 41# print "$1";
42} 42# }
43print $task;
diff --git a/.taskrc b/.taskrc
index c7a4112..f86bb63 100644
--- a/.taskrc
+++ b/.taskrc
@@ -58,6 +58,12 @@ report.todoConky.sort = due+
58report.todoConky.filter = status:pending and due.after:now and due.before:later 58report.todoConky.filter = status:pending and due.after:now and due.before:later
59report.todoConky.dateformat = D-M-y H:N (A) 59report.todoConky.dateformat = D-M-y H:N (A)
60 60
61### report for focus script
62report.custom_focus.columns = description
63report.custom_focus.labels = Description
64report.custom_focus.description = Task to feed to focus script
65report.custom_focus.filter = status:pending and +ACTIVE
66
61### contexts 67### contexts
62context.home = +@home or +@online 68context.home = +@home or +@online
63context.work = +@work or +@online 69context.work = +@work or +@online