Plasma-Theme-Switcher/README.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-27 12:34:11 +02:00
# Plasma Theme Switcher
## Description
2024-05-27 14:05:52 +02:00
This is a simple script that changes the Plasma theme according to a custom time or according to your locations sunrise/sunset using a systemd timer.
2024-05-27 12:34:11 +02:00
2024-05-27 14:05:52 +02:00
Default is changing theme to dark at 9:30 p.m. and back to Light at 6:30 a.m.
2024-05-27 12:34:11 +02:00
## Installation
2024-05-27 14:05:52 +02:00
### Use the installer.sh script to set up automatically
```
$ git clone https://gitlab.com/dataprolet/plasma-theme-switcher
$ cd plasma-theme-switcher
$ sh installer.sh
```
2024-05-27 12:34:11 +02:00
2024-05-27 14:05:52 +02:00
- Change the service file to specifiy which script to use.
- Change either script to a custom time or custom location.
2024-05-27 12:34:11 +02:00
2024-05-27 14:05:52 +02:00
### Install manually
1. Place timer and service file in the respective user directory ~/.config/systemd/user
2. Place the script into a directory and specify the path in the service file
3. Change time in script if necessary (default is 9:30 p.m. and 6:00 a.m.)
4. Alternatively use the themer-sun.sh script to change themes according to your locations sunrise/sunset and specify location in the script
5. Enable and start the timer:
2024-05-27 14:06:16 +02:00
```
2024-05-27 14:07:12 +02:00
$ systemctl --user enable theme-switcher.timer
$ systemctl --user start theme-switcher.timer
2024-05-27 14:06:16 +02:00
```