diff options
author | Yigit Sever | 2024-10-29 14:21:35 +0100 |
---|---|---|
committer | Yigit Sever | 2024-10-29 14:21:35 +0100 |
commit | 3f1a02964504ed79c1d615e69af8cd7a152871e0 (patch) | |
tree | c7baedce7326362496ae308cf71145917e951548 /.config/polybar | |
parent | 06e88dc3f4cd167b6caba00bc921f4e8f5c3294f (diff) | |
download | dotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.tar.gz dotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.tar.bz2 dotfiles-3f1a02964504ed79c1d615e69af8cd7a152871e0.zip |
*bar: escape ampersand in focus script
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 | ||