Re: [dev] Focusing on windows by name

From: Peter John Hartman <peterjohnhartman_AT_gmail.com>
Date: Wed, 26 Oct 2011 09:51:36 -0400

I do something similar:

TMPFILE=/tmp/dwm-lastwindow
xdotool getwindowfocus > $TMPFILE
foo=$(xdotool search --class st)
if [[ $foo != "" ]]; then
        xdotool windowactivate $foo
else
        st -e tmux-start &
fi


-- 
sic dicit magister P
University of Toronto / Fordham University
Collins Hall B06; Office Hours TF10-12
http://individual.utoronto.ca/peterjh
gpg --keyserver pgp.mit.edu --recv-keys E0DBD3D6 
Received on Wed Oct 26 2011 - 15:51:36 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 26 2011 - 16:00:07 CEST