AutoThemeSwitcher is a Bash script,that works with user provided details.
A UI based on python is used to take Configuration for different System settings.
Uses Native KDE commands for bash execution.
Clone/Download the project,Open a terminal in project folder
Run
sh ./install.sh
in terminal to start script execution.
- A python Virtual environment is created and necessary tools are downloaded.
- A UI is provided to select options.
- Select the options you would like to change automatically then click on save
- On specified time KDE will switch from light theme details to dark theme and vice versa.
- The default time to switch to Light theme is 9 AM,Dark Theme is 6 PM.
- change the times,if needed.(works for hours only)
open settings app and follow along for better understanding of theme/settings names.
My Configuration Files:
If you like my configuration(or)desktop setup,the files are available here
- KDE Plasma 5.18+
- Python 3.8+
- pyqt5
- pyqt5-tools
- Ubuntu 20.04 LTS
- KDE Plasma 5.18.5
- Qt Version 5.12.8
- Python 3.8.2
A virtual environment is created on Script(install.sh) execution,related files are downloaded.
A python UI is provided to take options for categories as input.
Current desktop theme details are fetched,to display to user.
When user clicks save,selected options are stored in a file and a cronjob is created.
a log for theme is generated everytime a script is executed to debug any errors.
In home directory a folder with name ~/.kdeAutoThemeSwitch is created,to store
- logs
- theme switch script
- user provided configuration data
This directory is used to change themes from light to dark and vice versa.
Supported theme options
- Global Theme
- Plasma Style
- Application Style
- Window Decorations
- GTK Theme
- Colors
- Icons
- Kvantum(if available)
Files edited on theme change
- plasmarc
- kdeglobals
- kwinrc
- gtk-3.0/settings.ini
- kvantum.kvconfig(if installed)