From c4089805edef20661346248a63f0bbe7ff37ab87 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 6 Feb 2012 02:16:49 -0600 Subject: [PATCH] refactor settrans --- settrans | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settrans b/settrans index ebe6c83..5c4984d 100755 --- a/settrans +++ b/settrans @@ -1,7 +1,7 @@ #!/bin/bash # transset in a bash script -# copyright (c) 2011, christopher jeffrey +# copyright (c) 2011-2012, christopher jeffrey # usage: # by window id @@ -27,8 +27,8 @@ root= parent= active= -while getopts "scn:w:o:" OPTION; do - case "$OPTION" in +while getopts "scn:w:o:" option; do + case "$option" in s) window="" ;; c) active=$(xprop -root -notype "_NET_ACTIVE_WINDOW" \