summaryrefslogtreecommitdiff
path: root/.local/bin/x-www-browser
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/x-www-browser')
-rwxr-xr-x.local/bin/x-www-browser14
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/x-www-browser b/.local/bin/x-www-browser
new file mode 100755
index 0000000..0ead72a
--- /dev/null
+++ b/.local/bin/x-www-browser
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+list='firefox iceweasel icecat conkeror'
+
+looking=true
+for prog in $list; do
+ if $looking && [ -n "`pgrep $prog`" ]; then
+ $prog $@
+ looking=false
+ fi
+done
+if $looking; then
+ conkeror $@
+fi