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