Skip to content

cthackers/oled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oled-blackout (X11)

Full-black, per-monitor overlay windows for OLED burn-in prevention.

I have a three multi monitor setup, and sometimes I play on one, or just watch a movie, and the other ones are just sitting there burning in their pixels. So I made a small app that renders a full screen, black overlay, over the monitor you want to turn off and I can do this from a shortcut key for each monitor individually. In case anywone needs it, here's the code.

Requirements

  • X11 session (not Wayland)
  • xrandr available in PATH

Build

go build -o oled .

Usage

List monitors and their indices:

./oled list

Toggle blackout on monitor 0 (or by output name like DP-1):

./oled toggle 0
./oled toggle DP-1

Black out two monitors (e.g. left + right):

./oled on 0 2

Emergency un-blackout:

./oled off all

Fedora KDE (X11) shortcut setup

  1. Open System SettingsKeyboardShortcutsAdd NewCommand or Script
  2. Add a shortcut for each monitor:
    • Command: /full/path/to/oled toggle DP-1 (or 0, 1, 2 from oled list)
    • Shortcut: pick something like Super+KP_1, Super+KP_2, Super+KP_3 (I use these Windows-key + Numpad 1, 2, 3)

Tip: Prefer output names (DP-1, HDMI-1, …) over indices if your monitor ordering changes.

About

Full-black, per-monitor overlay windows for OLED burn-in prevention.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages