aboutsummaryrefslogtreecommitdiff
path: root/run-all-x11.sh
diff options
context:
space:
mode:
authortoni <matzeton@googlemail.com>2016-03-14 16:49:06 +0100
committertoni <matzeton@googlemail.com>2016-03-14 16:49:06 +0100
commit2ac30fb459343323bdf58f3ebb05948a401b0b7c (patch)
tree40df764d90877fd00bd80708c8b7e454c707aa8b /run-all-x11.sh
parente833f64fa6b97c762e38a969d0e6d6091a8cbe19 (diff)
auto type text in specified x11 windows
Diffstat (limited to 'run-all-x11.sh')
-rwxr-xr-xrun-all-x11.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/run-all-x11.sh b/run-all-x11.sh
new file mode 100755
index 0000000..b91936c
--- /dev/null
+++ b/run-all-x11.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+
+for wid in $(xdotool search --onlyvisible --sync --all --class X-terminal-emulator)
+ do xdotool type --window $wid "$*"
+ xdotool key --window $wid KP_Enter
+done