]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds ratpoisoner
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Aug 2025 10:59:27 +0000 (07:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Aug 2025 10:59:27 +0000 (07:59 -0300)
ratpoisoner [new file with mode: 0755]

diff --git a/ratpoisoner b/ratpoisoner
new file mode 100755 (executable)
index 0000000..1220aa9
--- /dev/null
@@ -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