From b29ed0b265683702646eb209eafcc9a92b317b3b Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 27 Dec 2024 14:41:35 +0100 Subject: up --- .local/bin/dmscrot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.local/bin/dmscrot') diff --git a/.local/bin/dmscrot b/.local/bin/dmscrot index 82b3c27..dcefb70 100755 --- a/.local/bin/dmscrot +++ b/.local/bin/dmscrot @@ -129,11 +129,16 @@ sub main { my $list; my $choice; + my $color; + $color = '#cc241d'; + if (@ARGV == 1) { + $color = $ARGV[0]; + } for (@{+LIST}) { $list .= $_ . "\n"; } - $choice = `printf "%s" "$list" | dmenu -i -l 10`; + $choice = `printf "%s" "$list" | dmenu -i -sb '$color' -shb '$color'`; action($choice); return (0); } -- cgit v1.2.3