summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmscrot
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmscrot')
-rwxr-xr-x.local/bin/dmscrot7
1 files changed, 6 insertions, 1 deletions
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);
}