1. Home
  2. Linux
  3. Color temperature on linux

How to change the color temperature on Linux with Gammy

Gammy is a neat little Linux program that you can install to change your monitor’s color temperature. It can also automatically change and adjust the brightness on your screen based on the colors it is displaying.

In this guide, we’ll show you how to install Gammy on your Linux PC so that you can use it to change the color temperature of your screen to something more comfortable than the default. 

Need to filter blue light on Linux? Try this.

Installing Gammy on Linux

Before we get going with how to use Gammy on your Linux PC to change the color temperature, we must demonstrate how to install the software, as it does not come pre-installed by default on any mainstream Linux operating system. 

To start the process of installing the Gammy application on your Linux PC, open up a terminal window. Once the terminal window is open and ready to use, follow the installation instructions down below that corresponds to the Linux OS, you use.

Ubuntu

Gammy doesn’t provide any DEB packages for Ubuntu users. If you want to use the software, you will need to compile it yourself from the source code. To start the compilation process, you will need to install the dependencies.

sudo apt install build-essential libgl1-mesa-dev qt5-default git

After taking care of all of the dependencies, you will need to download the source code to your computer using the git clone command.

git clone https://github.com/Fushko/gammy.git

Once you’ve downloaded the software to your Ubuntu computer, use the CD command to move into the “gammy” folder where the code is.

cd gammy

Inside the code folder, it is time to configure the code using the Qmake tool. So, using the qmake command down below, compile the software. 

qmake Gammy.pro

After running the qmake command on your computer, it’s time to build the software. Using the make command, compile Gammy onto your computer. 

make

After the software is compiled, you can run the sudo make install command to install it to your system. 

sudo make install

Debian

The Debian installation instructions for Gammy are identical to the Ubuntu ones, as they’re using the same base OS. To start the install process, you need to install the software dependencies. To do that, enter the command below.

sudo apt-get install build-essential libgl1-mesa-dev qt5-default git

With the software dependencies taken care of, the next step is to download GitHub’s source code using the git clone command. 

git clone https://github.com/Fushko/gammy.git

Next, enter the software folder using the CD command. Once in the folder, use the qmake command to configure build rules for Gammy.

cd gammy
qmake Gammy.pro

From here, build the software on your Linux PC using the make command. 

make

Finally, install the program onto your computer using the sudo make install command.

sudo make install 

Arch Linux

On Arch Linux, you will need to build the software from scratch like any other Linux distribution. However, Gammy is in the AUR, so you will be able to generate an installable Arch package from the source code and automate the installation.

To start the installation process for Arch Linux, open up a terminal window and use the commands below to install the Trizen AUR helper tool. 

sudo pacman -S git base-devel

git clone https://aur.archlinux.org/trizen.git

cd trizen

makepkg -sri

Fedora

Sadly, Fedora Linux doesn’t have any way to get Gammy built, as the developer hasn’t indicated what packages to install for non-Ubuntu/Debian distributions. If you use Fedora and want to use Gammy, head over to the website, and compile it yourself.

OpenSUSE

OpenSUSE is the one Linux distribution that has Gammy as a pre-built package. To install the software on your computer, open up a terminal window and execute the commands below.

Tumbleweed

sudo zypper addrepo https://ftp.lysator.liu.se/pub/opensuse/repositories/multimedia:/apps/openSUSE_Tumbleweed/ multimedia-apps-x86_64

sudo zypper install gammy

LEAP 15.2

sudo zypper addrepo https://ftp.lysator.liu.se/pub/opensuse/repositories/multimedia:/apps/openSUSE_Leap_15.2/ multimedia-apps-x86_64

sudo zypper install gammy

Change color temperature with Gammy

To change the color temperature with Gammy, you need to use the temperature feature. To use this feature on your Linux desktop, follow the step-by-step instructions below. 

Step 1: Launch the Gammy application on your Linux desktop by searching for “Gammy” in the app menu. If you cannot find it there, you can launch the program via the quick-launcher.

To launch the app via quick-launcher, press Alt + f2 and enter the command gammy.

Step 2: Once Gammy is open, an icon will appear in the system tray. Click on it. After clicking on it, a control window will appear. In this control window, look for “Temperature.”

Step 3: After locating “Temperature,” you’ll notice a slider beneath it. Drag this slider left or right to adjust your color temp. 

Alternatively, if you want Gammy to change your screen’s color temp (s) automatically, locate the “Auto” button, and click on it. By selecting this, it will automatically adjust the color.

3 Comments

  1. When putting make on the terminal it gives me this error:

    make
    g++ -c -pipe -O3 -std=gnu++1z -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_DBUS_LIB -DQT_CORE_LIB -I. -Iinclude -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Ibuild/moc -Isrc -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o build/obj/dspctl-xlib.o src/dspctl-xlib.cpp
    src/dspctl-xlib.cpp:7:10: fatal error: X11/extensions/xf86vmode.h: No such file or directory
    7 | #include
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:498: build/obj/dspctl-xlib.o] Error 1

    Distro: Linux mint 20.2

    • I’m not quite sure what that error is, but you might need to re-download the source code or re-install the dependencies and try again.

  2. Or… or… or you can just use a dark theme, permanently. And not that ugly dark grey stuff, either. Get yourself the Oomox Theme Builder and have dark themes the way YOU want them. It takes a bit of playing but once you get use to it you can put together some awesome themes.