diff options
author | Yigit Sever | 2019-12-16 15:10:12 +0300 |
---|---|---|
committer | Yigit Sever | 2019-12-16 15:10:12 +0300 |
commit | 0ee8d81649c027a8bfbd9d740325f5e922eb9705 (patch) | |
tree | 46e4586d95df04fc75a3824b0ca4475f1fef3846 | |
parent | 702d0822b2a9b79602db02797b8ff4816a90c22a (diff) | |
download | dotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.tar.gz dotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.tar.bz2 dotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.zip |
Change focus script to display time
-rwxr-xr-x | .config/polybar/focus | 12 | ||||
-rw-r--r-- | .taskrc##c.desktop,h.Lowe | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/.config/polybar/focus b/.config/polybar/focus index 8eeb92a..17c9862 100755 --- a/.config/polybar/focus +++ b/.config/polybar/focus | |||
@@ -34,10 +34,10 @@ $active_task_maybe =~ s/^\s+|\s+$//g; | |||
34 | my @lines = split /\n/, $active_task_maybe; | 34 | my @lines = split /\n/, $active_task_maybe; |
35 | 35 | ||
36 | my $task = $lines[2]; | 36 | my $task = $lines[2]; |
37 | $task =~ s/^\s+|\s+$//g; | 37 | $task =~ s/^\s+|\s+$//g; # left and right trim |
38 | $task =~ s/\s+/ /g; | 38 | $task =~ s/\s+/ /g; # reduce multiple whitespace into one |
39 | 39 | ||
40 | # if ($task =~ m/.*?next (.*)$/) { | 40 | if ($task =~ m/^(.*)?\s(\d+\w+)$/g) { |
41 | # print "$1"; | 41 | print "$1 | $2"; |
42 | # } | 42 | } |
43 | print $task; | 43 | # print $task; |
diff --git a/.taskrc##c.desktop,h.Lowe b/.taskrc##c.desktop,h.Lowe index b79820e..c8419c4 100644 --- a/.taskrc##c.desktop,h.Lowe +++ b/.taskrc##c.desktop,h.Lowe | |||
@@ -62,8 +62,8 @@ report.todoConky.filter = status:pending and due.after:now and due.before:l | |||
62 | report.todoConky.dateformat = D-M-y H:N (A) | 62 | report.todoConky.dateformat = D-M-y H:N (A) |
63 | 63 | ||
64 | ### report for focus script | 64 | ### report for focus script |
65 | report.custom_focus.columns = description | 65 | report.custom_focus.columns = description,start.age |
66 | report.custom_focus.labels = Description | 66 | report.custom_focus.labels = Description,active |
67 | report.custom_focus.description = Task to feed to focus script | 67 | report.custom_focus.description = Task to feed to focus script |
68 | report.custom_focus.filter = status:pending and +ACTIVE | 68 | report.custom_focus.filter = status:pending and +ACTIVE |
69 | 69 | ||