summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmsearch
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-12-27 14:41:35 +0100
committerJoe <rbo@gmx.us>2024-12-27 14:41:35 +0100
commitb29ed0b265683702646eb209eafcc9a92b317b3b (patch)
tree6c2fe54fab038febcd506e93e3c8e6d085124910 /.local/bin/dmsearch
parentgood (diff)
downloaddotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.gz
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.bz2
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.xz
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.tar.zst
dotfiles-bsd-b29ed0b265683702646eb209eafcc9a92b317b3b.zip
up
Diffstat (limited to '.local/bin/dmsearch')
-rwxr-xr-x.local/bin/dmsearch9
1 files changed, 7 insertions, 2 deletions
diff --git a/.local/bin/dmsearch b/.local/bin/dmsearch
index 22ad2d7..9e76bbd 100755
--- a/.local/bin/dmsearch
+++ b/.local/bin/dmsearch
@@ -6,7 +6,7 @@ use Sys::Hostname;
use constant {
BROWSER => '/bin/firefox',
- HOSTNAME => (split /\./, hostname())
+ HOSTNAME => (split /\./, hostname())[0]
};
sub main
@@ -15,12 +15,17 @@ sub main
my $url;
my $pid;
my $prefix;
+ my $color;
+ $color = '#cc241d';
+ if (@ARGV == 1) {
+ $color = $ARGV[0];
+ }
$prefix = '/usr';
if (HOSTNAME eq "mars") {
$prefix += '/local';
}
- $choice = `printf "" | dmenu -i -p 'search:'`;
+ $choice = `printf "" | dmenu -i -p 'search:' -sb '$color' -shb '$color'`;
if (not $choice) {
return;
}