Gammy – Adaptive screen brightness utility for Linux

Gammy is a program that adjusts the level of screen brightness and the amount of blue light emitted automatically.

All technology enthusiasts heartily greeted smartphones when they came around. Not only because it was all futuristic and attractive, but also because now you could do things that you could only do on your desktop or laptop.

E-mailing, text messaging, sharing files, all became much easier. Even though it seems like smartphones are given features based on those possessed by notebooks, they have a world of their own. Now, even the computer world is learning things from smartphones.

One such feature of smartphones that we all find helpful is automatic brightness adjustment. Having that on our Linux systems will be great, especially for those who move around with their laptops a lot. We present a program just for that task, Gammy.

Features

Gammy is a program that adjusts the level of screen brightness and the amount of blue light emitted automatically. The way it works is that Gammy takes a screenshot after a very fixed period, and gradually adjusts the brightness based on that.

There are specific configurations available. Some of those are:

Major options:

  • Adjust maximum and minimum brightness levels
  • Offset, which adds to the brightness of the display
  • A higher value of offset corresponds to a higher level of brightness
  • Temperature adjusts the amount of blue light being emitted

    Primary configurations
    Primary configurations

Even though it seems like these are the only options available, users can find even more options by expanding the window. A smart little idea, if you ask us so that only the users who are interested in advanced options can access them if they want. So, further options are:

  • Speed decides the rate (of time) at which the brightness level will change.
  • Threshold sets how much a screen has to change to execute a brightness alteration. In other words, users can configure the amount of change in the brightness when brightness is increased/decreased by one level.
  • As mentioned above, Gammy works on screenshots, so users can increase or decrease the frequency of screenshots taken (hence, the frequency of change in the brightness) through screenshot rate.

    Advanced configuration options
    Advanced configuration options

Installation

The installation of Gammy requires quite a bit of a prerequisite so that we can get that out of the way first. For Ubuntu (and its derivatives), any Debian based distribution, or any other distribution that uses the APT package management, use the following command:

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

You can use the different commands according to your system, but the packages must be these.

These are the QT (and Git) dependencies.

Installing prerequisites
Installing prerequisites

After being done with the requirements, we should proceed with the installation. The instructions on the website suggest making a directory for Gammy in the users’ home directory itself. Still, we are recommending the process for a hidden directory here so that it doesn’t interfere with your workflow.

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

This copies the Gammy files to your system.

mv gammy .gammy

This makes the directory hidden.

cd gammy
qmake Gammy.pro
make

Installation finishes with this.

Gammy installation
Gammy installation

./gammy

This last command starts Gammy. We recommend adding this program to the startup of your system. To do this on Ubuntu, follow these steps:

  1. Search for ‘startup’ and enter the ‘Startup Applications‘ settings.
  2. Click ‘Add‘.
  3. Write the name and comment as you see fit (though we would recommend the name ‘Gammy‘ for ease of understanding), but as for the command, enter in the following format:
    /home/<username>/.gammy/gammy.

Adding Gammy to startup on Ubuntu
Adding Gammy to startup on Ubuntu

This procedure will differ according to different distributions. Still, I am sure you will be able to find the same feature under your system by looking for ‘startup applications’ or something similar. The command will remain the same.

Conclusion

Gammy is not only a great program but a promising idea. Instead of only hardware-based display covers, users can also use a software method to balance the brightness and blue-light emission level for comfort to the eyes. Even though it wasn’t expected to work excellently just through screenshots instead of photodetectors (compared to smartphones), it works pretty well! The adjustment made only through the screenshots is adequate, which makes it overall a great program.

If you require more information, visit the official website here. If you have any questions, feel free to ask them in the comments section.

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its many distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,420FansLike
377FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

Getting Started with Linux Operating System

The Linux operating system brings forth a vibrant mix of features and security, making it the best alternative to macOS or Windows operating systems. In this post, we will give you a master guide on Getting started with Linux systems - taking you from a complete beginner to a level where you can begin testing the various Linux distributions available with much ease.

How to Create a Comprehensive Mail Server on Ubuntu

Postal is a free and open-source mail server used to send and receive emails. It comes loaded with tons of excellent features and functionalities, making it extremely popular among large organizations as well as in enterprise settings.

The 10 Best Linux Performance Monitoring Tools

Do you want to monitor the performance of your Linux system? Are you looking for some powerful performance monitoring tools to help you out? If you agree, it's your day as we have put together a detailed list of the ten best Linux performance monitoring tools.

How to Boot your Windows or Linux PC from a USB Drive

Sometime back, the process of installing an operating system required users to pop a bootable media disk into their DVD or CD drive and use it to boot the PC. But times have changed. Nowadays, the most common way of installing an OS is booting from a USB drive. The use of USB drives is further propelled by the current production of slim and lightweight laptops with no support for DVD/CD drives.

Python For Loop: Everything You Need to Know

Loops are one of the essential elements in any programming language, and Python is not an exception to it. Loops are used to repeat a statement or a block of statements multiple times. If there were no concept of loops in programming languages, we have to write each statement again and again for the number of times we want to execute it.

How to install LibreOffice on Fedora

If you are looking for a feature-rich and reliable Office Suite for your Fedora PC, then you have an excellent option at hand. LibreOffice, a free and opensource app, has stood the test of time and evolved into a beautiful alternative to Microsoft Office.

MUST READ

Buyers who wish to go for a machine that is based on Linux often show interest in Chromebooks due to the form factor and extended battery life capabilities. Although ChromeOS power these machines, users can still miss out on a more genuine Linux experience. For those who happen to agree, the new Lemur Pro by System76 might get some heads turning.
Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.

5 Best ways to encrypt files in Linux

Privacy is something that almost all of us have concerns about. Many people switch over to Linux because of its better privacy features. In this time, where many people believe (quite rightly so) that privacy doesn't exist anymore, Linux provides a ray of hope. Distributions like Tails OS are specifically designed for that purpose.

Top 5 Linux Distros for Windows Users

When Microsoft initially released Windows 7 in October 2009, the software giant committed to providing ten years of support for its popular operating system.  The much-maligned Microsoft was true to their word, support for Windows 7 ended just yesterday a little over ten years after its release.

Top 20 must-have apps for your Ubuntu PC

OK, this one is going to be a long one, so grab a cup of coffee and scroll through the best apps that we think are must-have for your Ubuntu PC. We have hand-picked each one of these considering the most common categories that suit an average Linux user.

[Guide] apt vs apt-get commands, and which one to use?

Most Linux users, both veterans, and newbies, often get confused about what the difference between the Linux commands apt, and apt-get are and when they should use one or the other.