On Mon, Aug 25, 2014 at 1:11 PM, Chris Bell <cwbell@mail.usf.edu> wrote:
The problem is, I don't know where to start with this. My idea was to
use environment variables to identify the current workspace, but I'm
not sure how to. Any suggestions/ideas are greatly appreciated!

Add EwmhDesktops to your config and use wmctrl or xprop -root to get the current desktop. Both will require processing the output: "wmctrl -d" indicates the current desktop with an asterisk and "xprop -root -notype _NET_CURRENT_DESKTOP" includes the property name.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net