summaryrefslogtreecommitdiffstats
path: root/.config/polybar/scripts
diff options
context:
space:
mode:
authorYigit Sever2024-10-29 14:21:35 +0100
committerYigit Sever2024-10-29 14:21:35 +0100
commit3f1a02964504ed79c1d615e69af8cd7a152871e0 (patch)
treec7baedce7326362496ae308cf71145917e951548 /.config/polybar/scripts
parent06e88dc3f4cd167b6caba00bc921f4e8f5c3294f (diff)
downloaddotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.tar.gz
dotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.tar.bz2
dotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.zip
*bar: escape ampersand in focus script
Diffstat (limited to '.config/polybar/scripts')
-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