summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Betts <sabetts@gmail.com>2009-04-24 10:16:39 -0700
committerShawn Betts <sabetts@gmail.com>2009-04-24 10:16:39 -0700
commitb890eb8b955edfa46acda6d7b4ff0ab7f15dcfab (patch)
tree950b5dff6795130eb61c90335f4ad04975d78db5
parenta4de27cea6f5bf937f9b282f0195c0e4763a185f (diff)
downloadratpoison-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.
-rwxr-xr-xcontrib/rpws4
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 );
}