diff --git a/tdrop b/tdrop index 32dedce..0c5d978 100755 --- a/tdrop +++ b/tdrop @@ -91,8 +91,8 @@ do a) auto_detect_wm=true;; m) monitor_aware=true;; -) - OPTION=$(echo "$OPTARG" | awk -F '=' '{print $1}') - OPTARG=$(echo "$OPTARG" | awk -F '=' '{print $2}') + OPTION=${OPTARG%%=*} + OPTARG=${OPTARG#*=} case $OPTION in height) height=$OPTARG;; width) width=$OPTARG;;