elenapan/Scripts/focus.sh
2017-08-22 19:18:26 +03:00

4 lines
184 B
Bash
Executable file

# Focuses the first window with some string in its title
# Use: focus.sh mystring
WINDOWID="$(wmctrl -l | grep -v "wmctrl" | grep -m 1 "$1" | awk '{print $1}')"
wmctrl -i -a $WINDOWID