From a5be58007cb5639d9060ae4dbb54327d1e8dc0d5 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 27 Dec 2024 12:00:06 +0100 Subject: good --- .local/bin/dmbookm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.local/bin/dmbookm') diff --git a/.local/bin/dmbookm b/.local/bin/dmbookm index e43d565..2bfeb21 100755 --- a/.local/bin/dmbookm +++ b/.local/bin/dmbookm @@ -40,7 +40,12 @@ sub main my $pid; my $prefix; my $list; + my $color; + $color = '#cc241d'; + if (@ARGV == 1) { + $color = $ARGV[0]; + } $prefix = '/usr'; if (HOSTNAME eq "mars") { $prefix += '/local'; @@ -48,7 +53,7 @@ sub main for (keys %{LIST()}) { $list .= $_ . "\n"; } - $choice = `printf "$list" | dmenu -i -l 100`; + $choice = `printf "$list" | dmenu -i -l 100 -sb '$color' -shb '$color'`; if (not $choice) { return; } -- cgit v1.2.3