diff options
Diffstat (limited to '.config/polybar')
-rwxr-xr-x | .config/polybar/scripts/focus | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/polybar/scripts/focus b/.config/polybar/scripts/focus index b60ef7b..87ee19b 100755 --- a/.config/polybar/scripts/focus +++ b/.config/polybar/scripts/focus | |||
@@ -40,8 +40,9 @@ $active_task_maybe =~ s/^\s+|\s+$//g; | |||
40 | my @lines = split /\n/, $active_task_maybe; | 40 | my @lines = split /\n/, $active_task_maybe; |
41 | 41 | ||
42 | my $task = $lines[2]; | 42 | my $task = $lines[2]; |
43 | $task =~ s/^\s+|\s+$//g; # left and right trim | 43 | $task =~ s/^\s+|\s+$//g; # left and right trim |
44 | $task =~ s/\s+/ /g; # reduce multiple whitespace into one | 44 | $task =~ s/\s+/ /g; # reduce multiple whitespace into one |
45 | $task =~ s/&/&/g; # escape ampersands | ||
45 | 46 | ||
46 | my $context = `task context | grep yes | cut -d' ' -f1`; | 47 | my $context = `task context | grep yes | cut -d' ' -f1`; |
47 | 48 | ||