Skip to content

πŸŒ™ A simple GUI for xsct to adjust screen color temperature and brightness on X11. Reduce eye strain at night with warm colors and dimmer brightness β€” no auto-mode, just full manual control.

License

Notifications You must be signed in to change notification settings

wachin/xsct_gui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ™ xsct_gui

Topic

LEEME EN ESPAΓ‘OL

πŸŒ™ xsct_gui – Easy Screen Light Control, for X11 Window Manager

This program helps you adjust the color and brightness of your screen on Linux, making it more comfortable to look at β€” especially at night.

It’s like adding a β€œwarm light filter” (similar to your phone’s night mode that diminishes the blue light) to reduce eye strain and make late-night screen time easier on your eyes.

xsct_gui is a graphical interface for xsct, a small command-line tool that changes your screen’s color temperature using xrandr.


🎯 What does this program do?

  • πŸ”† Adjusts screen color: Make your screen more orange (warm) or more white (cool).
  • πŸ’‘ Controls brightness: Make the screen dimmer or brighter.
  • πŸ–±οΈ All through a simple, easy-to-use interface with sliders.

βœ… Perfect for nighttime use, studying, or working on your computer.
πŸ’‘ Try to match your screen color to the lighting in your room β€” and avoid blue-heavy lights at night!


πŸ’» The Operating System you need

You’ll need a Linux system using the X11 Window Manager (not Wayland).
As of 2025, these desktop environments still support X11 sessions:

  • GNOME
  • KDE
  • Linux Mint
  • XFCE
  • LXQt
  • LXDE
  • openbox, fluxbox, jwm, and other X11 window managers

❗ This tool won’t work on Wayland. Make sure you log in using an X11 session.

βœ… Required software

Before using xsct_gui, make sure you have these installed (open a terminal and run):

sudo apt install python3 python3-tk xsct python3-pil.imagetk python3-cairosvg

The following is a table with the description of each one

Program Purpose
Python 3 The programming language the GUI is written in.
Tkinter (python3-tk) Creates the window and buttons (GUI toolkit).
Pillow (python3-pil.imagetk) Displays the colorful gradient bars.
CairoSVG (python3-cairosvg) Allows the program to show SVG icons (like the app icon).
xsct The actual tool that changes your screen color.
Papirus Icon Theme Provides a nice app icon.

πŸ“ If you're using Debian 11 (bullseye) or Debian 10 (buster), xsct isn't available. You'll need to compile it manually (see instructions at the end).


🐧 Linux Distribution Support

Ubuntu (and flavors like Kubuntu, Xubuntu, etc.)

If you're using Ubuntu and its flavors that support X11 logins, those packages are available in the repositories:

πŸ“Œ Note: Linux Mint is based on Ubuntu, so these packages may have those names there as well.

Debian (and derivatives like MX Linux, antiX)

If you're using Debian and its derivatives like MX Linux, antiX, etc., where you can log in with X11, those packages are available in the repositories:

πŸ“Œ Note: MX Linux 23, antiX 23, and others are based on Debian 12


▢️ How to use the program

First, you need to have the program in a folder on your Linux computer

1st OPTION: Download the repository

Go to the website:

https://github.com/wachin/xsct_gui

click on the arrow-like dropdown in Code:

<> Code β–Ό

and click on:

Download ZIP

extract it, and inside the folder you'll find the Launcher.sh file or you can clone it:

2nd OPTION: Clone the repository

1.- Since we already have git installed, open a terminal in a folder where you have Linux programs:

git clone https://github.com/wachin/xsct_gui  

and enter there with:

cd xsct_gui  

Run the Launcher.sh file

Make sure the Launcher.sh script is executable. In the file manager, right-click on it and in the "Permissions" tab make sure it "is executable" Double-click the Launcher.sh script and click Run

πŸ‘‰ A window will open with two controls:

πŸ’‘ On some Linux you can right click on the xsct_gui.py file and open it with python.

Open the program with python using python3 xsct_gui.py

1.- Open a terminal 2.- Go to the folder where the xsct_gui.py file is located, or open a terminal there from your file manager 3.- Run the program with this command:

python3 xsct_gui.py

πŸ‘‰ A window will open with two controls


πŸŽ›οΈ Interface Controls

1. 🌑️ Color Temperature (2000K to 6500K)

  • Left (2000K): Warm, orange tone β†’ best for nighttime.
  • Right (6500K): Cool, white-blue tone β†’ best for daytime.

πŸ“Œ Move the slider to choose your preferred color.

2. πŸ’‘ Brightness (0.200 to 1.000)

  • Left (0.200): Very dim β†’ great for dark rooms.
  • Right (1.000): Full brightness β†’ best in bright environments.

πŸ“Œ Adjust the slider to set your desired brightness.


πŸ” Are changes applied automatically?

βœ… Yes! As soon as you move a slider, the change takes effect immediately.

You can also click the "About..." button to see information about the program.


πŸ’‘ Tips for best results

Situation Recommended Settings
πŸŒ™ Night or dark room 3000K – 4000K temperature, 0.700 – 0.800 brightness
β˜€οΈ Daytime or bright room 5500K – 6500K temperature, 1.000 brightness
πŸ‘€ Eyes feel tired Try warmer color and lower brightness

πŸ” Experiment! Find the combo that feels best for your eyes and room lighting.


πŸ› οΈ Can I modify the program?

Absolutely! The program is written in Python, so you can open xsct_gui.py in any text editor (like Geany, Thonny, or Mousepad) to:

  • Change colors
  • Edit labels
  • Add new features

πŸ“š Great for learning Tkinter GUI programming in Python!


πŸ“š More information


πŸ™Œ About this program

Created by Washington Indacochea Delgado License: GNU GPL3 (free and open source)

✨ Thank you for using xsct_gui!
May your screen always be easy on the eyes. πŸ‘€πŸ’™


πŸ“ Notes

  • On older Debian versions (like Buster or Bullseye), xsct isn’t available. You’ll need to compile it manually:
# Install build dependencies
sudo apt install libx11-dev libxrandr-dev

# Clone and compile xsct
git clone https://github.com/faf0/sct
cd sct
make
sudo make install

Then install the GUI dependencies:

sudo apt install python3 python3-tk python3-pil.imagetk python3-cairosvg

Now run:

python3 xsct_gui.py

βœ… You're all set!
Now go ahead and try changing your screen color β€” especially at night! 🌈πŸ–₯️
Enjoy a more comfortable computing experience!

πŸ™ God bless you all.

About

πŸŒ™ A simple GUI for xsct to adjust screen color temperature and brightness on X11. Reduce eye strain at night with warm colors and dimmer brightness β€” no auto-mode, just full manual control.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published