Skip to content

FreyreCorona/ReadMode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“– ReadMode

ReadMode is a simple tool to toggle reading mode on Linux using X11. Reading mode adjusts the screen color temperature to reduce blue light, helping to reduce eye strain when reading or working at night.


πŸš€ Features

  • βœ… Enable or disable reading mode on any X11-based Linux desktop (GNOME, KDE, XFCE, etc.).
  • βœ… Standalone executable with no external dependencies.
  • βœ… Can run silently in the background.
  • βœ… Simple interface via desktop launcher or terminal.
  • βœ… Compatible with most Linux distributions.

πŸ–₯️ Requirements

  • A Linux desktop environment using X11 (not compatible with Wayland).
  • Tested on Ubuntu, Debian, Mint, Arch, Fedora, and others.

πŸ”§ Installation

βœ… Method 1 β€” Install system-wide (recommended)

  1. Copy the executable to the system's binary folder:
sudo cp ReadMode /usr/local/bin/
  1. Copy the icon to the system icons directory:
sudo cp ReadMode.png /usr/share/icons/hicolor/256x256/apps/
  1. Copy the desktop launcher to the applications directory:
sudo cp ReadMode.desktop /usr/share/applications/
  1. (Optional) Update the icon cache to ensure the icon displays properly:
sudo gtk-update-icon-cache /usr/share/icons/hicolor/
  1. βœ… Done!
    ReadMode will now appear in your application menu. You can also run it from the terminal simply by typing:
ReadMode

βœ… Method 2 β€” Run locally (portable mode)

If you don't want to install it system-wide, you can run it directly from any folder:

  1. Make sure the executable and desktop file are in the same folder.

  2. Edit ReadMode.desktop and update the paths:

Exec=/path/to/your/folder/ReadMode
Icon=/path/to/your/folder/ReadMode.png
  1. Make the desktop file executable:
chmod +x ReadMode.desktop
  1. Double-click the desktop file to run it.

❗ Note: In portable mode, the launcher won’t show in the main applications menu unless installed to /usr/share/applications/.


🧠 Usage

πŸ”₯ From the terminal:

ReadMode

βœ”οΈ This toggles reading mode on or off automatically based on the current time of your System.

πŸ”₯ From the desktop menu or launcher:

  • βœ”οΈ Click β†’ Toggle reading mode (on/off) based on the current time of your System.

βš™οΈ How It Works

  • Uses X11 commands (xrandr) and Xlib (Xlib11) APIs to adjust screen gamma and color temperature.
  • Reduces blue light to protect your eyes and improve comfort during reading or nighttime use.
  • It will automatically changes betwen modes based on the current time starts at 16:00 and finish at 06:00

🐧 Compatibility

  • βœ… Ubuntu, Debian, Linux Mint, Pop!_OS, MX Linux.
  • βœ… Arch Linux, Manjaro, EndeavourOS.
  • βœ… Fedora, OpenSUSE.
  • ❌ Not compatible with Wayland (X11 only).
  • x Not compatible with Windows

πŸ‘¨β€πŸ’» Author

  • @FreyreCorona

πŸ“ License

This project is licensed under the GNU General Public Licence (GPL.3).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages