diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-28 20:52:50 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-03-28 20:52:50 -0400 |
commit | be87825a69b5d08f8525ff0a2e449330f087d741 (patch) | |
tree | daa41c97644b6eba0e817fa1aff11835eec71903 |
My X program aliases
-rwxr-xr-x | x-pdf | 9 | ||||
-rwxr-xr-x | x-terminal-emulator | 10 | ||||
-rwxr-xr-x | x-www-browser | 14 | ||||
-rwxr-xr-x | xmessage | 2 |
4 files changed, 35 insertions, 0 deletions
@@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -x "`which okular 2>/dev/null`" ]; then + okular "$@" +if [ -x "`which evince 2>/dev/null`" ]; then + evince "$@" +elif [ -x "`which xpdf 2>/dev/null`" ]; then + xpdf "$@" +fi diff --git a/x-terminal-emulator b/x-terminal-emulator new file mode 100755 index 0000000..f7290b4 --- /dev/null +++ b/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/x-www-browser b/x-www-browser new file mode 100755 index 0000000..0ead72a --- /dev/null +++ b/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/xmessage b/xmessage new file mode 100755 index 0000000..bd30b5e --- /dev/null +++ b/xmessage @@ -0,0 +1,2 @@ +#!/bin/sh +gxmessage $@ -fn 'Monospace' |