
~/.Xdefaults-hostname ( $XENVIRONMENT/.Xdefaults) if not set. There also is the $XENVIRONMENT variable, which defaults to Now that gets a bit complicated because there could be multiple Xdefaultsįiles found in different ways other than ~/.Xdefaults. The network because you needed direct access to the file. So that means the old method, Xdefaults, couldn’t be used over Which have properties stored in the root window/resource manager (think Single time a client program (Xlib) was started, unlike Xresources The way it was done in the old days is that Xdefaults was read every Now for something unrelated, Xdefaults is the old version of Xresources. Otherwise, if you want the Xprofile, you have to source the file manuallyįrom startx/xinit or XDM or any other display manager. SDDM - /usr/share/sddm/scripts/Xsession.

Some specific display manager include in their default Xsession an extra Otherwise, if the /usr/bin/x-terminal-emulator command exists, run it. Otherwise, if the /usr/bin/x-window-manager command exists, run it. Otherwise, if the /usr/bin/x-session-manager command exists, run it. Otherwise, if the user has a ~/.xsession or ~/.Xsession file, run it. If a specific session was selected in the DM (GDM, KDM, WDM, LightDM, …), run it. If the user has a ~/.xsessionrc file, read it. Of them depending on what the type of session, I quote: etc/X11/Xsession.options along with a directory of sub-xsessions toīe loaded in /etc/X11/Xsession.d. So similar to xinitrc we have globally a default located at Instead of xinitrc the file loaded at login will be the Xsessionįile. What about initiating a graphical session from the display manager. However, replacing this xserverrc allows us to start X in different ways. This consists of simply: exec /usr/bin/X -nolisten tcp " " Xinit/startx will finally start the X server, it does it by executing a script found in ~/.xserverrc or globally /etc/X11/xinit/xserverrc. xinitrc file (I’m guilty of this too) we can separate them into a. So in theory instead of having all those xmodmap lines that we find so commonly in the.

If starting via xinit, or startx which is a wrapper over xinit, On which one you use, different configuration files will be loaded. There’s roughly two ways to start your X environment, one is via xinitĪnd the other is via a display manager (fancy login screen). Let’s try to clear up this mumbo jumbo of words.

Xinitrc,xserverrc,xresources,xdefaults,xprofile,xsession,xmodmap. NB: This is a repost on this blog of a post made on Ĭonfiguration files and their roles.
