XGamma changes, how do I make them last?

Soldato
Joined
19 Oct 2002
Posts
5,780
I changed my gamma, but after a reboot it was back to default. How can I make it last? I want to know, if gamma is so important why isn't the setting on monitors with a bar instead of like a few choices like my LG has?
 
Last edited:
Create a .desktop file in ~/.config/autostart which runs the command you want.

Code:
cat > ~/.config/autostart/xgamma.desktop

[Desktop Entry]
Type=Application
Name=xgamma
Comment=xgamma
Exec=xgamma -gamma 1.5
StartupNotify=false
Terminal=false
Hidden=false

(ctrl-D)

Most desktop environments have a GUI method to do so, e.g in Xfce :
  1. Go to "Settings" > "Session and Startup" > "Application Autostart"
  2. Click "Add", then:
    • Name: xgamma
    • Description: xgamma
    • Command: xgamma -gamma 1.5
    • Trigger: on login
There's other ways (.xprofile , .xinitrc , ...) but I think this way works on any freedesktop.org-conformant DE regardless of the X display manager (Xorg/wayland).
 
Last edited:
Back
Top Bottom