summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-11-20 18:48:15 -0300
committerGenerated from internal repo <nobody@neo900.org>2016-11-20 18:48:15 -0300
commitd6fda4cb3ca7dd3e54d1bcf9984a0690cc785221 (patch)
tree7dd65eeac72af8bfa50750ad9daf7cd597741fad /scripts
parentaa12d5736d2f3e2cdc2da3aeb85d23a5ca22c64b (diff)
downloadee-d6fda4cb3ca7dd3e54d1bcf9984a0690cc785221.tar.gz
ee-d6fda4cb3ca7dd3e54d1bcf9984a0690cc785221.tar.bz2
ee-d6fda4cb3ca7dd3e54d1bcf9984a0690cc785221.zip
scripts/etc: ERC setup script, using xdotool
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/erc38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/erc b/scripts/erc
new file mode 100755
index 0000000..75aea51
--- /dev/null
+++ b/scripts/erc
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# erc - Set up ERC settings for the Neo900 project
+#
+# Idea and prototype by Joerg Reisenweber, this implementation by
+# Werner Almesberger.
+#
+
+#
+# This script is VERY fragile and is affected by window manager behaviour.
+#
+# Use as follows:
+# - start eeschema and open the ERC dialog
+# - start this script
+# - move the mouse over the ERC dialog
+# The script should then switch to the "Options" tab and change some of the
+# error and warning settings.
+#
+
+#
+# The key sequences make the the following changes:
+#
+# 1) Initialize to Default
+# 2) Tri vs. Output: W -> OK
+# 3) Power Out vs. Bidir: W -> OK
+# 4) Power Out vs. Tri: E -> OK
+# 5) OC vs. Tro: W -> OK
+# 6) OC vs. Power Out: E -> OK
+# 7) Power Out vs. Power Out: E -> OK
+
+xdotool search --name --onlyvisible --sync 'Electrical Rules Checker' \
+ key --delay 300 Right Down space \
+ Down Down Down Down Right space space \
+ Down Down Down Down Right space space \
+ Right space \
+ Down space space \
+ Right Right Right Right space \
+ Up space