From: Silvio Rhatto Date: Fri, 1 Aug 2025 10:59:27 +0000 (-0300) Subject: Adds ratpoisoner X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3720127cc7846928ea56b9bbb57d028db5533e37;p=utils-x11.git Adds ratpoisoner --- 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 " + 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