summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmsearch
diff options
context:
space:
mode:
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;
}