Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Keyboard Backlight Idle

A GNOME Shell extension that automatically dims and restores your laptop keyboard backlight when the system is idle. I actually can't believe this isn't already out there but to the best I can find, it isn't! It is modelled after the backlight brightness transistions of built in apple keyboards (sorry macbook haters!), that is, 1s fade out and 0.5s fade in. It uses IdleMonitor for responsiveness, and falls back to user input detection when the session is inhibited (such as during video playback or caffeine).

Installation

Clone into your extensions directory:

git clone https://github.com/flightmansam/gnome-keyboard-backlight-dimmer.git \
~/.local/share/gnome-shell/extensions/kbd-backlight@flightmansam

Then enable via GNOME Extensions app or:

gnome-extensions enable kbd-backlight@flightmansam

Future Work

  • Preferences menu for idle timeout, brightness values, and fade times.
  • Integration with GNOME Quick Settings keyboard brightness toggle.
  • Support for laptops with different kbd_backlight device (e.g. Dell and others?).
  • Bug where if login after sleep (and inevitably the keyboard has been dimmed) the set brightness is too low (1%)
  • Non-linear transtion curves (surely Craig Federighi would have used something sexy like that in macOS)
  • Add to GNOME Extensions repo

Disclaimer

I have only tested this with the following devices:

  • 16" M1 Pro running Asahi Fedora Remix 42 (Gnome 48)
  • 11" 2015 MacBook Air running Fedora 42 (Gnome 48)

This extension will probably(?) not work if your backlight doesn't support brightness range of 0-100% (e.g. some have levels 0-4).

About

GNOME Shell extension that dims and restores your keyboard backlight based on system idle state modelled after apple laptop keyboard behaviour on macOS.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages