summaryrefslogtreecommitdiffstats
path: root/.config/polybar/focus
diff options
context:
space:
mode:
authorYigit Sever2019-04-08 22:56:49 +0300
committerYigit Sever2019-04-08 22:56:49 +0300
commit347be3ed53e3a170279a52cff13ec84f9a9165b1 (patch)
tree63678ff6bc4c9c3042574c7a44a6441732efda42 /.config/polybar/focus
parentad88337536c671016a9055dd28ff735b9c897501 (diff)
parente2843e04c956db1eddc65bd9cd264b0c887230be (diff)
downloaddotfiles-347be3ed53e3a170279a52cff13ec84f9a9165b1.tar.gz
dotfiles-347be3ed53e3a170279a52cff13ec84f9a9165b1.tar.bz2
dotfiles-347be3ed53e3a170279a52cff13ec84f9a9165b1.zip
Merge branch 'master' of 207.154.210.186:/home/yigit/dots
Diffstat (limited to '.config/polybar/focus')
-rwxr-xr-x.config/polybar/focus11
1 files changed, 6 insertions, 5 deletions
diff --git a/.config/polybar/focus b/.config/polybar/focus
index 0cccea4..8eeb92a 100755
--- a/.config/polybar/focus
+++ b/.config/polybar/focus
@@ -19,9 +19,9 @@ use strict;
19use warnings; 19use warnings;
20use IO::CaptureOutput qw/capture_exec/; 20use IO::CaptureOutput qw/capture_exec/;
21 21
22my ($stdout, $stderr, $success, $exit_code) = capture_exec("task active"); 22my ($stdout, $stderr, $success, $exit_code) = capture_exec("task custom_focus");
23 23
24#print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n"); 24# print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n");
25 25
26if ($stderr =~ /No matches\./) { 26if ($stderr =~ /No matches\./) {
27 system 'echo "What a beautiful day"'; 27 system 'echo "What a beautiful day"';
@@ -37,6 +37,7 @@ my $task = $lines[2];
37$task =~ s/^\s+|\s+$//g; 37$task =~ s/^\s+|\s+$//g;
38$task =~ s/\s+/ /g; 38$task =~ s/\s+/ /g;
39 39
40if ($task =~ m/.*?next (.*)$/) { 40# if ($task =~ m/.*?next (.*)$/) {
41 print "$1"; 41# print "$1";
42} 42# }
43print $task;