.xprofile settingsPosted: 2023-01-31 Filed under: desktop, system | Tags: .bashrc, lxdm, slim, xprofile Leave a comment
Before discovering Slim I usually just used lxdm, which is nice and feature rich. However, login managers like lxdm (and I hear this applies to GDM, LightDM, and more…) do not obey any settings I put in, for example,
~/.xprofile seems to be the solution for such graphical login.
As explained by Arch’s wiki, it lets you execute commands, source files and/or
export settings just before the window manager is started, at the beginning of the X session. As an example, I keep it for my user only, with the following contents:
## Example for ~/.xprofile if [ -f ~/.bashrc ]; then . ~/.bashrc fi ## I like to set gamma a bit low... xgamma -gamma 0.8 ## Use these Freetype propertie export FREETYPE_PROPERTIES="truetype:interpreter-version=35" ## Do we have QT5CT installed? export QT_QPA_PLATFORMTHEME=qt5ct
The sourcing of .bashrc is discussed here.