u/rami0203

Day/Night mode detection
▲ 5 r/KittyTerminal+2 crossposts

Day/Night mode detection

I am working on a simple not so simple script to change the theme of an app based on the OS theme

I use KDE plasma 6.x so i have the day/night cycle, i know that KDE uses knighttimed to manage the day/night switch, but it doesn't have a d-bus api (to my knowledge) and it doesn't set an environment variable related to the current OS mode (day/night)

I use kitty terminal and I know that it can detect the OS theme to apply a specific theme, I know how the `kitten theme` works, but I want to know the logic to how does kitty know when to switch the theme

if there is any other/better way to detect the current mode tell me

u/rami0203 — 2 days ago