summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/polybar/scripts/focus5
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;
40my @lines = split /\n/, $active_task_maybe; 40my @lines = split /\n/, $active_task_maybe;
41 41
42my $task = $lines[2]; 42my $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
46my $context = `task context | grep yes | cut -d' ' -f1`; 47my $context = `task context | grep yes | cut -d' ' -f1`;
47 48