diff options
author | Yigit Sever | 2019-04-08 22:56:49 +0300 |
---|---|---|
committer | Yigit Sever | 2019-04-08 22:56:49 +0300 |
commit | 347be3ed53e3a170279a52cff13ec84f9a9165b1 (patch) | |
tree | 63678ff6bc4c9c3042574c7a44a6441732efda42 /.config/polybar | |
parent | ad88337536c671016a9055dd28ff735b9c897501 (diff) | |
parent | e2843e04c956db1eddc65bd9cd264b0c887230be (diff) | |
download | dotfiles-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')
-rw-r--r-- | .config/polybar/config##desktop.Linux.Lowe | 2 | ||||
-rwxr-xr-x | .config/polybar/focus | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/.config/polybar/config##desktop.Linux.Lowe b/.config/polybar/config##desktop.Linux.Lowe index 7e96a22..5b0c3c0 100644 --- a/.config/polybar/config##desktop.Linux.Lowe +++ b/.config/polybar/config##desktop.Linux.Lowe | |||
@@ -69,7 +69,7 @@ host = 127.0.0.1 | |||
69 | port = 6600 | 69 | port = 6600 |
70 | 70 | ||
71 | format-online = <toggle> <label-song> <icon-random> | 71 | format-online = <toggle> <label-song> <icon-random> |
72 | label-song = %artist% - %title% | 72 | label-song = %artist:0:24:...% - %title:0:24:...% |
73 | icon-pause = | 73 | icon-pause = |
74 | icon-play = | 74 | icon-play = |
75 | icon-random = 咽 | 75 | icon-random = 咽 |
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; | |||
19 | use warnings; | 19 | use warnings; |
20 | use IO::CaptureOutput qw/capture_exec/; | 20 | use IO::CaptureOutput qw/capture_exec/; |
21 | 21 | ||
22 | my ($stdout, $stderr, $success, $exit_code) = capture_exec("task active"); | 22 | my ($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 | ||
26 | if ($stderr =~ /No matches\./) { | 26 | if ($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 | ||
40 | if ($task =~ m/.*?next (.*)$/) { | 40 | # if ($task =~ m/.*?next (.*)$/) { |
41 | print "$1"; | 41 | # print "$1"; |
42 | } | 42 | # } |
43 | print $task; | ||