summaryrefslogtreecommitdiff
path: root/contrib/rpshowall.sh
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-03-16 00:33:34 +0000
committersabetts <sabetts>2006-03-16 00:33:34 +0000
commit9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6 (patch)
treec6b2230a429ae887eed80487d1833c1eec129447 /contrib/rpshowall.sh
parent0ad6d8b36f975c43f37b0ad07112c2cd31003417 (diff)
downloadratpoison-9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6.zip
remove tabs and trailing whitespace.
Diffstat (limited to 'contrib/rpshowall.sh')
-rw-r--r--contrib/rpshowall.sh56
1 files changed, 28 insertions, 28 deletions
diff --git a/contrib/rpshowall.sh b/contrib/rpshowall.sh
index 487ad90..cb02795 100644
--- a/contrib/rpshowall.sh
+++ b/contrib/rpshowall.sh
@@ -1,17 +1,17 @@
#!/bin/sh
# rpshowall
-# ratpoison script to show all open windows
+# ratpoison script to show all open windows
# Copyright (C) 2003 Florian Cramer <cantsin@zedat.fu-berlin.de>
-# Usage :
+# Usage :
#
# rpshowall [no arguments]
# if called from a terminal, show all open windows and
# restore previous frame layout upon keystroke
#
# rpshowall [n>1]
-# show all open windows for n seconds,
+# show all open windows for n seconds,
# then restore previous frame layout
#
# rpshowall 0
@@ -24,9 +24,9 @@ fi
# Parse input argument
if [ $*>0 ]; then
- wait="$*"
-else
- wait=-1
+ wait="$*"
+else
+ wait=-1
fi
@@ -40,34 +40,34 @@ curlayout=`$RATPOISON -c fdump`
# Create split view of all open windows
$RATPOISON -c only
-i=2;
-while [ $i -le $framecount ]; do
- if [ $i -le `echo $framecount/2 | bc` ] ; then
- $RATPOISON -c hsplit
- else
- $RATPOISON -c vsplit
- fi
- $RATPOISON -c focus
- $RATPOISON -c focus
- i=$[$i+1];
+i=2;
+while [ $i -le $framecount ]; do
+ if [ $i -le `echo $framecount/2 | bc` ] ; then
+ $RATPOISON -c hsplit
+ else
+ $RATPOISON -c vsplit
+ fi
+ $RATPOISON -c focus
+ $RATPOISON -c focus
+ i=$[$i+1];
done
# Depending on the argument the script was executed with,
# 1- select a new window and exit opening it fullscreen
-# 2- restore frameset after keyboard input
-# 3- restore frameset after $wait seconds of delay
+# 2- restore frameset after keyboard input
+# 3- restore frameset after $wait seconds of delay
$RATPOISON -c "select $curframe"
if [ $wait -eq 0 ]; then
- $RATPOISON -i -c fselect
- $RATPOISON -c only
+ $RATPOISON -i -c fselect
+ $RATPOISON -c only
else
- $RATPOISON -i -c windows
- if [ $wait -eq -1 ]; then
- echo -n "Hit return to restore window layout. "
- read i
- else
- sleep $wait
- fi
- $RATPOISON -c "frestore $curlayout"
+ $RATPOISON -i -c windows
+ if [ $wait -eq -1 ]; then
+ echo -n "Hit return to restore window layout. "
+ read i
+ else
+ sleep $wait
+ fi
+ $RATPOISON -c "frestore $curlayout"
fi