README.md (1554B)
1 # theme-switchers
2
3 Please send patches or remarks to
4 [jayvii+theme-switchers[AT]posteo[DOT]de](jayvii+theme-switchers[AT]posteo[DOT]de)
5
6 Tools to switch between dark and light mode of some tools I use.
7
8 ## Switch themes
9
10 You can switch all themes at once with the `switch-themes.sh` script. When
11 called without arguments, switches from the current to the other. Can be called
12 with either `dark` or `light` to choose a specific:
13
14 ```bash
15 ./switch-themes.sh "dark"
16 ```
17
18 The `auto-themes.sh` script switches your themes by daytime. It requires the start and end time of the **light** theme as argument and will set the dark theme in all other cases. Call it for example via cron (e.g. every 5 minutes):
19
20 ```cron
21 */5 * * * * $HOME/.local/share/theme-switchers/auto-themes.sh "09:00" "23:00"
22 ```
23
24 ### GNOME
25 Regarding the [GNOME Desktop](https://www.gnome.org/):
26 Uses `gsettings` to switch between dark and light mode.
27
28 When called without arguments, switches from the current to the other. Can be
29 called with either `dark` or `light` to choose a specific:
30
31 ```bash
32 ./gnome-switch-theme.sh "dark"
33 ```
34
35 ### Helix
36
37 Regarding the [Helix editor](https://helix-editor.com/):
38 Overrides the `theme` variable within the `config.toml` file.
39
40 When called without arguments, switches from the current to the other. Can be
41 called with either `dark` or `light` to choose a specific:
42
43 ```bash
44 ./helix-switch-theme.sh "dark"
45 ```
46
47 Requires a dark and light theme to be defined in
48 `~/.config/helix/autothemes.toml`:
49 ```toml
50 theme_dark = "onedark"
51 theme_light = "onelight"
52 ```
53