diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-05-17 23:10:36 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-05-17 23:10:36 -0400 |
commit | 6b9d85951e8f93bcac34b25eeb6654217bfdf5b8 (patch) | |
tree | 4cad8abfd3e7091727c0396fa2ad9ca72c35230f /.local | |
parent | 064afade87e784ba4f51aaf71304c75c255179e6 (diff) |
clean up
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/x-pdf | 9 | ||||
-rwxr-xr-x | .local/bin/x-terminal-emulator | 10 | ||||
-rwxr-xr-x | .local/bin/x-www-browser | 14 | ||||
-rwxr-xr-x | .local/bin/xmessage | 2 |
4 files changed, 35 insertions, 0 deletions
diff --git a/.local/bin/x-pdf b/.local/bin/x-pdf new file mode 100755 index 0000000..a9893c0 --- /dev/null +++ b/.local/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/.local/bin/x-terminal-emulator b/.local/bin/x-terminal-emulator new file mode 100755 index 0000000..f7290b4 --- /dev/null +++ b/.local/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/.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 diff --git a/.local/bin/xmessage b/.local/bin/xmessage new file mode 100755 index 0000000..bd30b5e --- /dev/null +++ b/.local/bin/xmessage @@ -0,0 +1,2 @@ +#!/bin/sh +gxmessage $@ -fn 'Monospace' |