diff options
| author | Yigit Sever | 2020-01-04 16:21:34 +0300 |
|---|---|---|
| committer | Yigit Sever | 2020-01-04 16:21:34 +0300 |
| commit | ec041431da07ece93a258674191ee8b16befcca6 (patch) | |
| tree | a9a1de2111f3aef153c84cb0cdd161b3f8530218 /.config/polybar | |
| parent | 3cd07e80c97a6c9f9a7283b384da52d681824ec3 (diff) | |
| parent | b7382c651d7246c1e0f17c42434ee30dd72ec017 (diff) | |
| download | dotfiles-ec041431da07ece93a258674191ee8b16befcca6.tar.gz dotfiles-ec041431da07ece93a258674191ee8b16befcca6.tar.bz2 dotfiles-ec041431da07ece93a258674191ee8b16befcca6.zip | |
Merge branch 'master' of 207.154.210.186:/home/yigit/dots
Diffstat (limited to '.config/polybar')
| -rwxr-xr-x | .config/polybar/focus | 12 |
1 files changed, 6 insertions, 6 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; |
