aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-08-01 11:06:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-08-01 11:06:09 -0300
commite309c5a66202bdab0919d87c72fa2dca9537d807 (patch)
treeeacf59524cb5f63124c2a937fdc46efc2b76e379
parent3720127cc7846928ea56b9bbb57d028db5533e37 (diff)
downloadutils-x11-e309c5a66202bdab0919d87c72fa2dca9537d807.tar.gz
utils-x11-e309c5a66202bdab0919d87c72fa2dca9537d807.tar.bz2
Ratpoisoner: workspaces action
-rwxr-xr-xratpoisoner10
1 files changed, 10 insertions, 0 deletions
diff --git a/ratpoisoner b/ratpoisoner
index 1220aa9..9a73559 100755
--- a/ratpoisoner
+++ b/ratpoisoner
@@ -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