]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
Add function stardewpause
authorHendrik Jaeger <git-commit@henk.geekmail.org>
Wed, 18 Sep 2019 07:32:26 +0000 (09:32 +0200)
committerHendrik Jaeger <git-commit@henk.geekmail.org>
Wed, 18 Sep 2019 07:32:26 +0000 (09:32 +0200)
.zsh_functions

index 1e456e6eb2fa5a06751c117f904bed4697292190..ae295da778fb5a9793531cb75c1390236db0a9ed 100644 (file)
@@ -77,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
+}
+