]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blobdiff - .zsh_functions
Add alias for pastebinning to ix.io
[user/henk/vcsh/zsh.git] / .zsh_functions
index abc9d22e4507617937982138071b2fc36d2e7391..ae295da778fb5a9793531cb75c1390236db0a9ed 100644 (file)
@@ -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\r
+  done
+}
+