Open yuioto opened 1 year ago
There is now a desktop environment independent way to query the system dark mode: The org.freedesktop.appearance.color-scheme
key in the XDG desktop portal.
It's also possible to be notified during runtime as soon as the dark mode preference changes.
Example desktop environments that have support for this key are:
org.freedesktop.appearance.color-scheme
supposed.gdbus call --session --timeout=1000 \
--dest=org.freedesktop.portal.Desktop \
--object-path /org/freedesktop/portal/desktop \
--method org.freedesktop.portal.Settings.Read org.freedesktop.appearance color-scheme
Discussed in https://github.com/xfangfang/wiliwili/discussions/177