You are not logged in.
Hi,
I wanted to have my Gnome 48 Wayland switching from light do dark mode and vice-versa.
I have my Mcmojave light and dark themes for GTK and Kvantum for QT. Some gnome extensions are in use also to get full dark/light mode (Legacy Theme Scheme Auto Switcher+Light Style+Night Theme Switcher)
According to wiki, I got Yin-Yang tool because it's easy and very configurable. All of that worked for couple of months but lately some issues occurred.
The automatic switching connected to geoclue stopped. Right now to switch the mode, I need to run the Yin-Yang and click Apply (without changing anything in the program itself).
I described that issue to author but without answer.
Do you have an idea hot to fix that or at least to prepare some automation process of running the program and clicking apply button?
Last edited by linerman (2025-08-17 20:27:17)
Offline
Does geoclue still work?
/usr/lib/geoclue-2.0/demos/where-am-iOffline
By default geoclue relies on Mozilla's location service which is now discontinued. You can use the alternate google service but it requires an API key. This can be configured in
/etc/geoclue/geoclue.confYou can also set a static location if google does not work.
Offline
@topcat01
https://bbs.archlinux.org/viewtopic.php … 7#p2252767 - only the two links at the top.
Offline
Nice! I no longer use it myself so missed that update.
Offline
Does geoclue still work?
/usr/lib/geoclue-2.0/demos/where-am-i
/usr/lib/geoclue-2.0/demos/where-am-i
Client object: /org/freedesktop/GeoClue2/Client/4
New location:
Latitude: 52,330496°
Longitude: 16,790323°
Accuracy: 1560,414857 meters
Description: WiFi
Timestamp: pon, 11 sie 2025, 12:10:55 (1754907055 seconds since the Epoch) Looks that geoclue still works
Offline
You might want to edit/obfuscate the coordinates.
I need to run the Yin-Yang and click Apply (without changing anything in the program itself)
Is the daemon running at all then?
Offline
@seth, I think he already did or is a few hundred miles west of Ireland
Luckily not a lot of pirating going on there ![]()
Anyway, better obfuscate such output...
Offline
Offline
Think you're right, I don't see a '-' minus sign
Offline
You might want to edit/obfuscate the coordinates.
Did that for 400km, maybe not perfect...
Is the daemon running at all then?
Yes, it is
UNIT LOAD ACTIVE SUB DESCRIPTION >
geoclue.service loaded active running Location Lookup ServiceOffline
I meant the yin-yang daemon, not geoclue (we determined that works no problem)
Offline
Actually yin-yang does not come with a daemon or I know nothing about that. Community suggested to put yin-yang to autostart and run in minimized. Following seth thought about the daemon I checked the autostart and voila...
The author of the program changed the name from yin-yang to yin_yang.
Because of that my autostart script did not run and after changes it does. Placing file yin_yang.desktop in autostart folder with content below fixed the issue.
[Desktop Entry]
Type=Application
Name=Yin & Yang
Comment=Automatically switch between light and dark themes
Path=/opt/yin_yang
Icon=sh.oskar.yin_yang
Exec=sh -c "/usr/bin/yin_yang --systemd --minimized"
Categories=Utility;System;Settings
Keywords=night;day;dark;light;color;theme;Thanx seth for help once again!
Offline
\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline