From 50e92e74c461b637f826e5a68db4dd366f69a0d7 Mon Sep 17 00:00:00 2001 From: Hendrik Jaeger Date: Wed, 18 Sep 2019 09:32:26 +0200 Subject: Add function stardewpause --- .zsh_functions | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.zsh_functions b/.zsh_functions index 1e456e6..ae295da 100644 --- a/.zsh_functions +++ b/.zsh_functions @@ -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 + done +} + -- cgit v1.2.3