summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmbookm
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-12-27 12:00:06 +0100
committerJoe <rbo@gmx.us>2024-12-27 12:00:06 +0100
commita5be58007cb5639d9060ae4dbb54327d1e8dc0d5 (patch)
tree60116c8c8170d24850784299a4baa339f9b8af00 /.local/bin/dmbookm
parentup (diff)
downloaddotfiles-bsd-a5be58007cb5639d9060ae4dbb54327d1e8dc0d5.tar.gz
dotfiles-bsd-a5be58007cb5639d9060ae4dbb54327d1e8dc0d5.tar.bz2
dotfiles-bsd-a5be58007cb5639d9060ae4dbb54327d1e8dc0d5.tar.xz
dotfiles-bsd-a5be58007cb5639d9060ae4dbb54327d1e8dc0d5.tar.zst
dotfiles-bsd-a5be58007cb5639d9060ae4dbb54327d1e8dc0d5.zip
good
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;
}