You are not logged in.
I have setup Arch Linux with Xorg and i3. I'd like to use light mode for applications like firefox during time and automatically switch to dark mode at sunset. I came across Arch Wiki but it's not clear to me how to accomplish this for i3 without xfce xsettings daemon.
What I've done so far is, I installed xsettingsd package and added
xsettingsd &to my .xprofile. But I'm not sure where to go from here.
Offline
It sounds like darkman is doing exactly what you want. Have you tried setting it up, and if so, what problem did you encounter?
The dark mode/light mode switch is probably just a single setting, so actually it wouldn't be hard to set this up yourself if darkman etc don't work.
1. Develop scripts "switch-to-lightmode.sh" and "switch-to-darkmode.sh" (enables respective mode)
2. Develop scripts "next-sunset.sh" and "next-sunrise.sh" (prints time of event)
3. Develop script "timer.sh $TIME $COMMAND" that creates a one-off systemd timer to run $COMMAND at $TIME
4. Develop scripts "daytime.sh" (runs "./timer.sh $(next-sunset.sh) ./bedtime.sh") and "bedtime.sh" (runs "./timer.sh $(next-sunrise.sh) ./daytime.sh")
5. Run manually run daytime.sh or bedtime.sh once
Or if you want to be boring, just create a single systemd timer that runs every 15 minutes, and runs either "switch-to-lightmode.sh" or "switch-to-darkmode.sh" depending on current time.
Offline
You are right, darkman seems to be the tool for this. I was actually trying to avoid installing a pkg for this, so thanks a lot for outlining the solution. I'm going to try and script this myself first and if it doesn't work, I'll use darkman.
Offline