summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmsearch
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-05-15 18:30:17 +0200
committerJoe <bousset.rudy@gmail.com>2022-05-15 18:30:17 +0200
commit27614b6ab65d0b17549a33bbffdd20d3b45b44e7 (patch)
treee4163c921c55fc71c755912179e7184ea45763c4 /.local/bin/dmsearch
parentupdate (diff)
downloaddotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.gz
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.bz2
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.xz
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.tar.zst
dotfiles-bsd-27614b6ab65d0b17549a33bbffdd20d3b45b44e7.zip
update
Diffstat (limited to '')
-rwxr-xr-x.local/bin/dmsearch8
1 files changed, 4 insertions, 4 deletions
diff --git a/.local/bin/dmsearch b/.local/bin/dmsearch
index 68fb77c..cfef937 100755
--- a/.local/bin/dmsearch
+++ b/.local/bin/dmsearch
@@ -2,7 +2,7 @@
use strict;
use warnings;
-use constant BROWSER_PATH => '/usr/local/bin/firefox';
+use constant BROWSER_PATH => '/usr/local/bin/iridium';
sub main
{
@@ -12,15 +12,15 @@ sub main
$choice = `printf "" | dmenu -i -m 0 -p 'Search:'`;
if (not $choice) {
- return (0);
+ return;
}
$choice =~ s/ /+/g;
$url = 'https://duckduckgo.com/?q=' . $choice;
$pid = fork();
if (not $pid) {
- exec(BROWSER_PATH, '--kiosk', $url);
+ exec(BROWSER_PATH, $url);
}
- return (0);
+ return;
}
main();