You are not logged in.
I’ve installed geoclue + darkman to have an automatic light/dark mode switch in sway. I’m using custom scripts to change the wallpaper and notification theme based on the current mode. darkman is executed by sway, and these two custom scripts are executed by darkman on session startup without issues. However, when a light/dark mode transition occurs (darkman is already running at this time), it doesn’t execute them. Based on the logs, it sees the script but just do nothing. I couldn’t find any error, and it’s surprising since it does execute them on startup.
Here are the logs of the latest light to dark mode transition:
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Sunrise comes first; so it's night time
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Wanted mode is mode=dark
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Notifying all transition handlers of new mode
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Next sunrise time=YYYY-MM-DDTHH:MM:SS+Z
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Next sundown time=YYYY-MM-DDTHH:MM:SS+Z
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Will set an alarm for sunrise
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Setting timer seconds=35894 nanoseconds=719675744
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Found script path=/home/owner/.local/share/darkman/mako.sh
Apr 26 20:37:09 katana darkman[1492]: 20:37:09 INF Found script path=/home/owner/.local/share/darkman/swaybg.shWhat should I look for to fix this?
Simplicity is the ultimate sophistication. — Leonardo da Vinci (1452–1519)
Offline