Plasma-Theme-Switcher/README.md

33 lines
1.5 KiB
Markdown
Raw Normal View History

2024-05-27 12:34:11 +02:00
# Plasma Theme Switcher
## Description
2024-05-29 19:13:10 +02:00
This is a simple script that changes the Plasma Breeze theme according to a custom time or according to your location's sunrise/sunset. It's using a systemd timer as well as an autostart entry.
2024-05-27 12:34:11 +02:00
2024-05-27 16:59:00 +02:00
The default is setting the 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 16:38:59 +02:00
### Optional:
- Change the service file to specify which script to use.
2024-05-27 14:05:52 +02:00
- 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
2024-05-27 16:59:00 +02:00
1. Place the timer and service file in the user directory `~/.config/systemd/use`
2024-05-27 14:05:52 +02:00
2. Place the script into a directory and specify the path in the service file
2024-05-27 16:38:59 +02:00
3. Change the time in the script if necessary (the default is 9:30 p.m. and 6:00 a.m.)
4. Alternatively use the `theme-switcher-sun.sh` script to change the theme according to your location's sunrise/sunset and specify a location in the script
2024-05-27 14:05:52 +02:00
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
```
2024-06-03 14:09:27 +02:00
### Known issues
This script is only using the commands `plasma-apply-colorscheme` and `lookandfeeltool` which don't do the same things as the button in the Plasma settings. This can result in applications not changing their theme according to the system's theme and the cursor to be stuck at a theme.