Code Monkey home page Code Monkey logo

autotheme-19's Introduction

Autotheme-19

A Windows app that switches between dark and clear themes (on Windows 10) according to the times of the day you set.

  • The app sets the clear theme during the day and the dark theme during the night.

  • You can set the sunrise and sunset hours yourself or let the app calculate these times for you.

  • The app can also run at startup so you basically set it and forget it.

  • If you work at night, you can set the app to set the clear theme at night and the dark theme during the day.

It doesn't matter when you turn your computer on, or if you haven't used it in a while, the app will change your theme according to its settings. It will also enforce the setting if the theme changes, i.e by another app.

Written as a Python learning project during the COVID-19 pandemic.

Copyright © 2020 Juan Escobar Arias. Licensed under the terms of the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007.

How does it work?

You set a sunrise hour to set the clear theme and a sunset hour to activate the dark theme. Then the app sits on your system tray and waits for the specified time to change the theme.

Check the "I work at night" option (if you do so) to activate the clear theme at night and the dark theme during the day.

You can also set the app to calculate the sunrise and sunset times according to your location. For this internet access is needed.

The tray icon will show a sun from sunrise hour until sunset. After that a moon icon will be displayed.

About location and privacy policy

The app uses the geocoder library to obtain your location from the Google Maps service. If you have concerns about Google knowing your location/IP please do not use this option. Also please check the privacy policy of geocoder.

This app does not "call home" nor collects data from you.

I am not responsible for the development or the funcionality of the libraries linked in this project. Please check the respective documentation and direct inquiries to the relevant project. Everything is open source. You can check the source code of the app and suggest improvements.

Setup / Uninstall

Put the autotheme.exe file anywhere on your system and double click it.

On your first run, it will show the options window and you can set the sunrise/sunset hours, if you work at night or if you want to calculate the hours using your location.

The "Run on startup" option will create a shortcut on your startup folder, that is normally "C:\Users[YOUR_USERNAME]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup".

Additionally, a text file called conf.conf will be created beside the autotheme.exe file, to save the program options.

To "uninstall" first deactivate the "Run on startup" option. This will delete the shortcut in your startup folder. Then just delete the exe and the conf file. That's it.

Contributing and donating

Thank you so much for considering a contribution, it means a lot! Please refer to the contributing file to set you up.

Check out the list of issues, I'll gladly accept patches for the issues I'm having trouble with!

If you like this project and it has brought you a smile, please consider making a small donation in my paypal link, It would really be appreciated in these hard times. I can't be thankful enough.

Third party python libraries used

Python libraries used in this project

See the Python Documentation for information on them

  • tkinter
  • ast
  • socket
  • winreg
  • time
  • threading
  • webbrowser

autotheme-19's People

Contributors

jdarias avatar

Stargazers

 avatar

Watchers

 avatar  avatar

autotheme-19's Issues

Crashes or dormant processes after quitting

The app crashes or remains in memory after invoking the quit option. This is related to #1 because it happens when any of the windows have been called.
If it happens please kill all autotheme.exe processes in the task manager. I apologize for the inconvenience!

Windows called from the tray menu can be called several times

The ideal situation would be:
If i call the options window from the tray but that is already open, it should come to the front so I can interact with it.
What happens is: If the options window is already open, when i click options a small new window is open, with a close button. If i invoke options again, another small window will pop up. This also happens with the About box
p8OgyGJkUj
This image shows the options window beside a small "golem" window as a result of the mentioned procedure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.