summarylogtreecommitdiffstats
path: root/canabalt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'canabalt.sh')
-rw-r--r--canabalt.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/canabalt.sh b/canabalt.sh
new file mode 100644
index 000000000000..e0cd121ed53f
--- /dev/null
+++ b/canabalt.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -x /usr/bin/xdotool ] && [ "$1" = "" ]; then
+ # Automatically maximize game window if `xdotool` is installed. Use `Alt+F4` to exit.
+ xdotool sleep 2 search --name "Adobe Flash Player" windowactivate key Escape &
+fi
+
+flashplayer /opt/canabalt/canabalt.swf > /dev/null 2> /dev/null \ No newline at end of file