From 73567b5346b9af88655e2b0db24b1bd460c91fe1 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 6 Apr 2019 16:11:35 +0300 Subject: Fix focus script task name length constraint --- .config/polybar/focus | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to '.config/polybar') 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; use warnings; use IO::CaptureOutput qw/capture_exec/; -my ($stdout, $stderr, $success, $exit_code) = capture_exec("task active"); +my ($stdout, $stderr, $success, $exit_code) = capture_exec("task custom_focus"); -#print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n"); +# print("out: $stdout\nerr: $stderr\nexit_code: $exit_code\n"); if ($stderr =~ /No matches\./) { system 'echo "What a beautiful day"'; @@ -37,6 +37,7 @@ my $task = $lines[2]; $task =~ s/^\s+|\s+$//g; $task =~ s/\s+/ /g; -if ($task =~ m/.*?next (.*)$/) { - print "$1"; -} +# if ($task =~ m/.*?next (.*)$/) { +# print "$1"; +# } +print $task; -- cgit v1.2.3-70-g09d2 From e2843e04c956db1eddc65bd9cd264b0c887230be Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 8 Apr 2019 20:34:38 +0300 Subject: Truncate polybar mpd module --- .config/polybar/config##desktop.Linux.Lowe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/polybar') 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 port = 6600 format-online = -label-song = %artist% - %title% +label-song = %artist:0:24:...% - %title:0:24:...% icon-pause =  icon-play =  icon-random = 咽 -- cgit v1.2.3-70-g09d2