JustineSmithies,
@JustineSmithies@lemmy.world avatar

You could use swayidle and add a line to use either light or brightnessctl to dim and restore the brightness. Or just as I do turn off display after a certain time. This link should give you an idea. https://wiki.archlinux.org/title/Sway#Idle

rkk,
@rkk@lemmy.world avatar

Brightnessctl is installed and works just need a way to read whether is on ac or battery.

eshep,

@JustineSmithies @rkk Should be able to read it from /sys/devices/ or with upower.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • TheResearchGuardian
  • SuperSentai
  • feritale
  • oklahoma
  • Testmaggi
  • KbinCafe
  • Ask_kbincafe
  • KamenRider
  • All magazines