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.
- β 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.
- A Linux desktop environment using X11 (not compatible with Wayland).
- Tested on Ubuntu, Debian, Mint, Arch, Fedora, and others.
- Copy the executable to the system's binary folder:
sudo cp ReadMode /usr/local/bin/- Copy the icon to the system icons directory:
sudo cp ReadMode.png /usr/share/icons/hicolor/256x256/apps/- Copy the desktop launcher to the applications directory:
sudo cp ReadMode.desktop /usr/share/applications/- (Optional) Update the icon cache to ensure the icon displays properly:
sudo gtk-update-icon-cache /usr/share/icons/hicolor/- β
Done!
ReadMode will now appear in your application menu. You can also run it from the terminal simply by typing:
ReadModeIf you don't want to install it system-wide, you can run it directly from any folder:
-
Make sure the executable and desktop file are in the same folder.
-
Edit
ReadMode.desktopand update the paths:
Exec=/path/to/your/folder/ReadMode
Icon=/path/to/your/folder/ReadMode.png- Make the desktop file executable:
chmod +x ReadMode.desktop- 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/.
ReadModeβοΈ This toggles reading mode on or off automatically based on the current time of your System.
- βοΈ Click β Toggle reading mode (on/off) based on the current time of your System.
- 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
- β 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
- @FreyreCorona
This project is licensed under the GNU General Public Licence (GPL.3).