Skip to content

Instantly share code, notes, and snippets.

@markasoftware
Created May 3, 2018 15:20
Show Gist options
  • Save markasoftware/3358ceabab335942023e5a1558e12e0b to your computer and use it in GitHub Desktop.
Save markasoftware/3358ceabab335942023e5a1558e12e0b to your computer and use it in GitHub Desktop.
Konsoles all receive a command
#!/bin/bash
for i in $(xdotool search --class Konsole)
do
xdotool windowactivate --sync "$i" type "$1"
xdotool windowactivate --sync "$i" key Return
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment