diff options
-rwxr-xr-x | ratpoisoner | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ratpoisoner b/ratpoisoner new file mode 100755 index 0000000..1220aa9 --- /dev/null +++ b/ratpoisoner @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +# +# Ratpoison window manager utility. +# + +# Parameters +BASENAME="`basename $0`" +ACTION="$1" + +# Dispatch +if [ -z "$ACTION" ]; then + echo "usage: $BASENAME <action>" + exit 1 +elif [ "$ACTION" == "custom" ]; then + # Sources a custom ratpoisonrc file, if present + if [ -e "$HOME/.custom/ratpoisonrc" ]; then + ratpoison -c "source $HOME/.custom/ratpoisonrc" + fi +fi |