From: Mischa POSLAWSKY Date: Sat, 12 Nov 2022 23:52:17 +0000 (+0100) Subject: rotate sparkless indicators default X-Git-Tag: v1.09~24 X-Git-Url: http://git.shiar.nl/barcat.git/commitdiff_plain/e71fe5ab1a908a940a83a38e81e390c7bb5c61c1 rotate sparkless indicators default --- diff --git a/barcat b/barcat index 28e09b0..2339bc7 100755 --- a/barcat +++ b/barcat @@ -111,8 +111,8 @@ $opt{'value-length'} = 1 if $opt{unmodified}; $opt{'signal-stat'} //= exists $SIG{INFO} ? 'INFO' : 'QUIT'; $opt{markers} //= '=avg >31.73v <68.27v +50v |0'; $opt{palette} //= $opt{color} && [31, 90, 32]; -$opt{indicators} = [split //, - $opt{indicators} || ($opt{ascii} ? ' .oO' : ' ▁▂▃▄▅▆▇█') +$opt{indicators} = [split //, $opt{indicators} || + ($opt{ascii} ? ' .oO' : $opt{spark} ? ' ▁▂▃▄▅▆▇█' : ' ▏▎▍▌▋▊▉█') ] if defined $opt{indicators} or $opt{spark}; $opt{hidemin} = ($opt{hidemin} || 1) - 1; $opt{input} = (@ARGV && $ARGV[0] =~ m/\A[-0-9]/) ? \@ARGV : undef