Registered Member
|
I have a three-monitor setup and the middle screen is an ultrawide. Sometimes that's just too many photons, so I want to have a mode where the side screens have their brightness dimmed after a few minutes of inactivity, but then return to full brightness when I move the mouse into them.
I'm not a KDE developer, but I was hoping I could do this with a Kwin script. I did figure out that workspace.activeScreen correctly tracks the screen (since my active screen follows mouse focus). And I am happy to modulate the brightness using xrandr. But problematically, I think there is no "activeDesktopChanged" signal to latch onto. What's the recommended way of monitoring the activeScreen? Thanks for any help! -James |
Registered Member
|
As far as I can tell, since workspace.activeScreen is a property, there should be an associated signal workspace.activeScreenChanged. That's supposed to be the philosophy according to the latest API I could find. Of course, the philosophy seems to change every five seconds with vast inconsistencies from minor version to minor version. Kudos.
|
Registered Member
|
For the sake of anyone reading this at some point in the future, here is the hack I used to solve my problem with a bash script:
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]