Categories: CentOSLinuxShell

How to Activate Night Light mode on Rocky Linux Desktop

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.

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

Recent Posts

How to Install Magento 2 on AlmaLinux

Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…

1 year ago

How to Install ISPConfig Hosting Control Panel with Apache Web Server on Ubuntu 24.04

ISPConfig is an open-source control panel that allows users to manage multiple servers from a…

1 year ago

How to Test your Email Server (SMTP) Using the Telnet Command

As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…

1 year ago

Managing Network Interfaces and Settings on Ubuntu 24.04 with nmcli

Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…

2 years ago

Using Restic Backup on Ubuntu 24.04

Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…

2 years ago

Installing phpMyAdmin on Rocky Linux 9 and Securing it with Let’s Encrypt SSL

phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…

2 years ago