summaryrefslogtreecommitdiff
path: root/.prefix
diff options
context:
space:
mode:
Diffstat (limited to '.prefix')
-rwxr-xr-x.prefix/bin/x-pdf9
-rwxr-xr-x.prefix/bin/x-terminal-emulator10
-rwxr-xr-x.prefix/bin/x-www-browser14
-rwxr-xr-x.prefix/bin/xmessage2
l---------.prefix/bin/xterm1
5 files changed, 36 insertions, 0 deletions
diff --git a/.prefix/bin/x-pdf b/.prefix/bin/x-pdf
new file mode 100755
index 0000000..a9893c0
--- /dev/null
+++ b/.prefix/bin/x-pdf
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ -x "`which okular 2>/dev/null`" ]; then
+ okular "$@"
+elif [ -x "`which evince 2>/dev/null`" ]; then
+ evince "$@"
+elif [ -x "`which xpdf 2>/dev/null`" ]; then
+ xpdf "$@"
+fi
diff --git a/.prefix/bin/x-terminal-emulator b/.prefix/bin/x-terminal-emulator
new file mode 100755
index 0000000..f7290b4
--- /dev/null
+++ b/.prefix/bin/x-terminal-emulator
@@ -0,0 +1,10 @@
+#!/bin/sh
+if [ -x "`which emacsterm`" ]; then
+ emacsterm $@
+elif [ -x "`which urxvt`" ]; then
+ urxvt $@
+elif [ -x "`which gnome-terminal`" ]; then
+ gnome-terminal $@
+elif [ -x "`which xterm`"]; then
+ xterm $@
+fi
diff --git a/.prefix/bin/x-www-browser b/.prefix/bin/x-www-browser
new file mode 100755
index 0000000..0ead72a
--- /dev/null
+++ b/.prefix/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
diff --git a/.prefix/bin/xmessage b/.prefix/bin/xmessage
new file mode 100755
index 0000000..bd30b5e
--- /dev/null
+++ b/.prefix/bin/xmessage
@@ -0,0 +1,2 @@
+#!/bin/sh
+gxmessage $@ -fn 'Monospace'
diff --git a/.prefix/bin/xterm b/.prefix/bin/xterm
new file mode 120000
index 0000000..e8d5184
--- /dev/null
+++ b/.prefix/bin/xterm
@@ -0,0 +1 @@
+x-terminal-emulator \ No newline at end of file