You are not logged in.

#1 2017-02-19 03:15:54

emacsomancer
Member
Registered: 2014-09-20
Posts: 211

How to use different .xprofiles depending on DE[/WM] chosen?

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

#2 2017-02-19 09:26:19

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: How to use different .xprofiles depending on DE[/WM] chosen?

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

#3 2017-02-19 10:59:46

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: How to use different .xprofiles depending on DE[/WM] chosen?

emacsomancer wrote:

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

Board footer

Powered by FluxBB