smurphos wrote: ↑Fri Aug 16, 2019 1:52 am
Bruce McL wrote: ↑Thu Aug 15, 2019 10:17 pm
Those commands work - sort of. After I issue the commands in the terminal, I can open up the Settings app and see that the settings have changed. However, I have to log out and log back in to see the changes take effect.
That's weird - changes are immediately apparent on my system. What Mint version are you using?
I’m using LMDE 3. I did some more testing. It’s an intermittent problem. Sometimes the changes work in real life, and sometimes only in the preferences. The theme name command seems to have the most problems.
I could probably write something in BASIC, but not in BASH

. Here is an algorithm I would start with.
The day is divided into six segments, each with their own color of appearance themes.
The first task is to determine which segment we are in now from the current time.
On Startup or wake from sleep:
Get the time in hours 0-24
Add 2, divide by 4, truncate to 1 digit.
Store the result as “Segment” (this will have integer values of 0-6)
Go to part [value of Segment] in Endless loop.
End Startup
Endless loop:
part 0
if themes are not red then set themes to red
wait until 02:00
part 1
if themes are not purple then set themes to purple
wait until 06:00
part 2
if themes are not aqua then set themes to aqua
wait until 10:00
part 3
if themes are not green then set themes to green
wait until 14:00
part 4
if themes are not sand then set themes to sand
wait until 18:00
part 5
if themes are not orange then set themes to orange
wait until 22:00
lpart 6
go to part 0
End Endless loop
I don’t have to worry about entering the loop in the middle of a segment because I’m waiting until a specific time of day for the next color change, not counting down 4 hours.
If the user puts their laptop to sleep for a few minutes the colors will often stay the same. Therefore it is not necessary to write the preferences on wake or startup every time. The gsettings command does have the ability to return the current theme.