.xprofile settings

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, ~/.xinitrc. Therefore, ~/.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.

Works fine…



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s