X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=.zsh_functions;h=ae295da778fb5a9793531cb75c1390236db0a9ed;hb=05d5e0e882080c091ae5b554985719c33d9d40f4;hp=abc9d22e4507617937982138071b2fc36d2e7391;hpb=17b5541547b07a4154c7603a4f20ddc3ca519f35;p=user%2Fhenk%2Fvcsh%2Fzsh.git diff --git a/.zsh_functions b/.zsh_functions index abc9d22..ae295da 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -62,9 +62,10 @@ function henkspngpostproc () { shift for img in $* do - mkdir -p resized/pngnqed + mkdir -p resized/pngnqed/optipnged convert -resize $resize_by% $img resized/$img pngnq -f -d resized/pngnqed -e .png resized/$img + optipng -out resized/pngnqed/optipnged/$img resized/pngnqed/$img done } @@ -76,3 +77,14 @@ function with () { vared str && eval $str done } + +function stardewpause () { + while read bar + do + xdotool \ + search --class 'StardewValley' \ + windowactivate --sync \ + type --delay 100 t/pause + done +} +