From 3f1a02964504ed79c1d615e69af8cd7a152871e0 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 29 Oct 2024 14:21:35 +0100 Subject: *bar: escape ampersand in focus script --- .config/polybar/scripts/focus | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/polybar') 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; my @lines = split /\n/, $active_task_maybe; my $task = $lines[2]; -$task =~ s/^\s+|\s+$//g; # left and right trim -$task =~ s/\s+/ /g; # reduce multiple whitespace into one +$task =~ s/^\s+|\s+$//g; # left and right trim +$task =~ s/\s+/ /g; # reduce multiple whitespace into one +$task =~ s/&/&/g; # escape ampersands my $context = `task context | grep yes | cut -d' ' -f1`; -- cgit v1.2.3-70-g09d2