diff options
author | Shawn Betts <sabetts@gmail.com> | 2009-04-24 10:16:39 -0700 |
---|---|---|
committer | Shawn Betts <sabetts@gmail.com> | 2009-04-24 10:16:39 -0700 |
commit | b890eb8b955edfa46acda6d7b4ff0ab7f15dcfab (patch) | |
tree | 950b5dff6795130eb61c90335f4ad04975d78db5 /contrib | |
parent | a4de27cea6f5bf937f9b282f0195c0e4763a185f (diff) | |
download | ratpoison-b890eb8b955edfa46acda6d7b4ff0ab7f15dcfab.zip |
in contrib/rpws don't create wspl1, since it already exist as the Default group.
Also add a check to ensure the workspaces creates are at least 2.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/rpws | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/rpws b/contrib/rpws index 4408734..899166e 100755 --- a/contrib/rpws +++ b/contrib/rpws @@ -59,6 +59,8 @@ sub ws_init { my $num = shift; + $num >= 2 || die "You must create at least 2 workspaces."; + # Backup the frames my $fd = fdump(); @@ -66,7 +68,7 @@ sub ws_init rp_call( "only" ); my $i; - for my $i (1..$num) + for my $i (2..$num) { ws_init_ws( $i ); } |