From e29a9115d185d0b752868a36c8d56f6020bc4134 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Sun, 5 Jul 2020 18:55:39 +0200 Subject: Create basics source files --- tools/shader_watcher.sh | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 tools/shader_watcher.sh (limited to 'tools') diff --git a/tools/shader_watcher.sh b/tools/shader_watcher.sh new file mode 100755 index 0000000..d32285d --- /dev/null +++ b/tools/shader_watcher.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +# ____ _ _ _ ____ _____ ____ +# / ___|| | | | / \ | _ \| ____| _ \ +# \___ \| |_| | / _ \ | | | | _| | |_) | +# ___) | _ |/ ___ \| |_| | |___| _ < +# |____/|_| |_/_/ \_\____/|_____|_| \_\ +# +# __ ___ _____ ____ _ _ _____ ____ +# \ \ / / \|_ _/ ___| | | | ____| _ \ +# \ \ /\ / / _ \ | || | | |_| | _| | |_) | +# \ V V / ___ \| || |___| _ | |___| _ < +# \_/\_/_/ \_\_| \____|_| |_|_____|_| \_\ +# +# This program require xdotool to communicate +# with the window. + +wai=$(dirname $(readlink -f "$0")) # Current script directory + + +refresh() { + wid=$(xdotool search --name 'SFML/OpenGL Ray Marching') + [ ! -z "$wid" ] && xdotool key --window "$wid" R +} + +usage() { + echo "Usage: $0 [options]" + echo "Options:" + echo " --every