dusk changes when the time changes

This commit is contained in:
2023-09-17 19:51:03 +02:00
parent 3406fa27d9
commit 889e11cd47
4 changed files with 188 additions and 153 deletions

View File

@@ -38,7 +38,10 @@ int main(int argc, char *argv[]) {
if (argc == 1) { /* Automatically change themes when no argument is given */
changescheme(1); /* Start with light theme as default */
if (lightvalue() > 50)
changescheme(1); /* Start with light theme if brightness higher than 50 */
else
changescheme(0);
for(;;){
light=lightvalue(); /* Get ambient light */