]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Ratpoisoner: workspaces action
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Aug 2025 14:06:09 +0000 (11:06 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 1 Aug 2025 14:06:09 +0000 (11:06 -0300)
ratpoisoner

index 1220aa9fc9b8e225603857a4d62fd05b59cb2458..9a73559ff084cf3c880e299a33ec8e178715ae91 100755 (executable)
@@ -11,6 +11,16 @@ ACTION="$1"
 if [ -z "$ACTION" ]; then
   echo "usage: $BASENAME <action>"
   exit 1
+elif [ "$ACTION" == "workspaces" ]; then
+  # Spawn rpws
+  exec rpws init 9 -k -a
+
+  # Sleep, giving time for rpws  to start properly
+  sleep 1
+
+  # Apply a workaround to display a window after rpws is initialized
+  ratpoison -c 'prev'
+  ratpoison -c 'next'
 elif [ "$ACTION" == "custom" ]; then
   # Sources a custom ratpoisonrc file, if present
   if [ -e "$HOME/.custom/ratpoisonrc" ]; then