You are not logged in.
I'm trying to switch between Gnome-Shell & awesomewm as my "desktop environments" (I suppose awesomewm isn't technically a DE). I want to have different start-up things happen for these two environments. Is there a way of managing my .xprofile so as to make it sensitive to which DE/WM I've chosen to log in with?
Offline
At some point the session will export things like "DE" or "DESKTOP_SESSION" and whether it's possible to discriminate your xprofile largely depends on whether, how and when it's invoked by the session script (which you might have to alter)
Another approach is to use the DM (if you use any) where some allow to run scripts as user right before starting the selected session.
Offline
I want to have different start-up things happen for these two environments.
Add the awesome autostart commands to ~/.xsession, this will be started from the "Default Xsession" entry in the desktop selector in GDM (or any other XDG-compliant display manager).
For GNOME, use the XDG autostart specification to start your desired commands.
Offline