You don't even need to rely on the window title for the security aspect:
The _QUBES_VMNAME window property will tell you. For example:
$ CUR_WINDOW=`xdotool getwindowfocus`
$ VMNAME=`xprop _QUBES_VMNAME -id $CUR_WINDOW | cut -d \= -f2 | tr -d '"'`
xdotool also lets you inject keystrokes into windows.
With a shortcut-key assignment this can be easily scripted by the user
(you said this was for power users).
--
Chris Laprise, tas...@openmailbox.org
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/18f972c3-b186-1d00-92b2-f81f2e0172ac%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.