this post was submitted on 29 Oct 2024
16 points (100.0% liked)

KDE

5248 readers
69 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS
 

I want to change brightness based on which window is running, if its an IDE in dark mode increase, if it is a browser window decrease. The command itself is fairly easy to run even on wayland

qdbus local.org_kde_powerdevil /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 5000   
qdbus local.org_kde_powerdevil /org/kde/Solid/PowerManagement/Actions/BrightnessControl setBrightness 10000   

how can I do it on a per app/window basis?

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 day ago* (last edited 1 day ago)

This is probably where I would start.

You might be looking for workspace:windowActivated event or window:activeChanged and fire your script on that.