The desktop light is set to blue by default so that we can see better. However, this blue light strains our eyes and we fall asleep quickly. Therefore, it is better to turn on the night light at night. Another disadvantage of blue light is that it affects the brain’s thinking, which tells us that it is still daytime. The blue light shadow has a negative effect on the circadian rhythm and leads to a weak immune system, a disturbance of the sleep hormones and thus a loss of melatonin.
In this article you will learn how to activate the night indicator on your Rocky Linux desktop via the graphical user interface and the terminal.
This article demonstrates all the steps and commands on a Rocky Linux system. The same steps will work on CentOS and AlmaLinux as well.
Activate night light display using GUI
You can change the settings of the night light on your Linux system via the GUI. To do so, click on the down arrow sign in the upper left corner of the desktop system. The drop-down menu opens in the left corner of your desktop. Now navigate through the options and click on the settings icon in the Downtown list as follows:
You can also access the settings icon from the application search bar.
The following window will open on the desktop, where you will click on the search icon and type ‘Display’ in the search bar.
In the search results, you will select and click on Displays options from the list and the following window will display on your desktop. Click on the ‘Night Light’ option.
The night light dialog will be displayed on the window as follows:
You will turn on the night Light option and schedule this according to your requirements. You can also move arrows to set the night Light effects as follows:
Activate and turn off the night light using the command line
If you want to activate the night light settings on your Linux system, you can also change the settings for the night light display via the terminal. To do this, open the terminal. Click on Activities and open the terminal from the application search bar as follows:
You can also open the terminal with the key combinations “Ctrl + Alt + t”.
The following two different CLI solutions are available here to activate the night light display:
Activate night light display
Solution 1:
To turn on the display of Night light you can use the following command on the terminal:
$ gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true
Solution 2:
Instead of the above command, you also activate the night light display using the command as follows:
$ dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled true
Using one of the above commands, you will enable the night light display on your system and scheduled to be set according to the sunrise and sunset time which is fetched directly from the internet.
Disable the night light display
Solution 1:
In order to disable or deactivate the night light display, you will use the following command:
$ gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled false
Solution 2:
You can also use the alternate command to turn off the night light display as follows:
$ dconf write /org/gnome/settings-daemon/plugins/color/night-light-enabled false
With the two solutions above, you can disable the night light display settings on your Linus Desktop system via the terminal.
In this article you have learned how to enable and disable the night light indicator on your Rocky Linux system. We can do this task in two different ways: via the command line and via the graphical user interface. I hope that you are now able to use two different options to set the night light display via the Desktop preferences program or via the terminal.