summaryrefslogtreecommitdiffstats
path: root/.config/polybar
diff options
context:
space:
mode:
authorYigit Sever2019-12-16 15:10:12 +0300
committerYigit Sever2019-12-16 15:10:12 +0300
commit0ee8d81649c027a8bfbd9d740325f5e922eb9705 (patch)
tree46e4586d95df04fc75a3824b0ca4475f1fef3846 /.config/polybar
parent702d0822b2a9b79602db02797b8ff4816a90c22a (diff)
downloaddotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.tar.gz
dotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.tar.bz2
dotfiles-0ee8d81649c027a8bfbd9d740325f5e922eb9705.zip
Change focus script to display time
Diffstat (limited to '.config/polybar')
-rwxr-xr-x.config/polybar/focus12
1 files changed, 6 insertions, 6 deletions
diff --git a/.config/polybar/focus b/.config/polybar/focus
index 8eeb92a..17c9862 100755
--- a/.config/polybar/focus
+++ b/.config/polybar/focus
@@ -34,10 +34,10 @@ $active_task_maybe =~ s/^\s+|\s+$//g;
34my @lines = split /\n/, $active_task_maybe; 34my @lines = split /\n/, $active_task_maybe;
35 35
36my $task = $lines[2]; 36my $task = $lines[2];
37$task =~ s/^\s+|\s+$//g; 37$task =~ s/^\s+|\s+$//g; # left and right trim
38$task =~ s/\s+/ /g; 38$task =~ s/\s+/ /g; # reduce multiple whitespace into one
39 39
40# if ($task =~ m/.*?next (.*)$/) { 40if ($task =~ m/^(.*)?\s(\d+\w+)$/g) {
41# print "$1"; 41 print "$1 | $2";
42# } 42}
43print $task; 43# print $task;