~joshrig/lguf-brightness

brightness control for the LG ultrafine monitor

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~joshrig/lguf-brightness
read/write
git@git.sr.ht:~joshrig/lguf-brightness

You can also use your local clone with git send-email.

#Adjust brightness of LG UltraFine displays

Based on these three projects:

#Changes

  • I've added a command line interface in lieu of the curses-based one.
  • I also did some (IMHO) code beautification and cleanup.
  • Finally, my display control interface happened to have a product ID of 0x9a70 instead of 0x9a40.

#Compilation

$ cmake -B build .
$ cd build
$ make

#Options

usage: ./lgbrightness [OPTION]

  -M, --max          maximum brightness
  -m, --min          minimum brightness
  -u, --up           increase brightness
  -d, --down         decrease brightness
  -v, --version      version
  -h, --help         this message