From 5394b2c2bce92856b73046d707e7391cf31cbeab Mon Sep 17 00:00:00 2001 From: Subhaditya Nath Date: Mon, 31 May 2021 12:32:12 +0530 Subject: [PATCH] picom-trans: remove a no-longer-needed workaround --- bin/picom-trans | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/picom-trans b/bin/picom-trans index d90431e..2c84634 100755 --- a/bin/picom-trans +++ b/bin/picom-trans @@ -77,11 +77,6 @@ lineno= option= v= -# Workaround: replace '-5' with '~5' so as not to confuse getopts. -for v in "$@"; do - shift && set -- "$@" "$(echo "$v" | sed -E 's/^-([0-9]+%?)$/~\1/')" -done - # We make getopts stop on any argument it doesn't recognize # or errors on. This allows for things like `picom-trans -5` # as well as `picom-trans -c +5 -s` (contrived example). @@ -136,7 +131,7 @@ while test $# -gt 0; do done # clean up opacity. xargs == a poor man's trim. -opacity=$(echo "$opacity" | xargs | sed 's/%//g' | sed -E 's/^~([0-9]+)$/-\1/') +opacity=$(echo "$opacity" | xargs | sed 's/%//g') # Validate opacity value if test -z "$action" && ! echo "$opacity" | grep -qE '^[+-]?[0-9]+$'; then