36

I like playing tf2.
I play every video game with max brightness on the lappy.

The problem is that when I alt tab back to anything else, eg chrome, I get dazzled and my eyes hurt.

I'm on linux and accidentally noticed that I can connect to the X server and do stuff.

So I'm listening for events with the PropertyChangeMask, and when the active window has the name "Team Fortress 2 - OpenGL", I run "light -S 100", otherwise I use what I already had.

Very happy with this hack, instant brightness changes on alt tab.

Comments
  • 8
    Now that's what I call a large brain!
  • 0
    Username checks out.
    On a side note, if it doesn’t work, don’t call me.
Add Comment