back

pub / theme-switchers

Switching Themes for various GNU+Linux software
git clone src.jayvii.de/pub/theme-switchers.git
Home | Log | Files | Exports | Refs | README | RSS

Activity: Oct, 2025 - Oct, 2025

Less More

theme-switchers

Please send patches or remarks to jayvii+theme-switchers[AT]posteo[DOT]de

Tools to switch between dark and light mode of some tools I use.

Switch themes

You can switch all themes at once with the switch-themes.sh script. When called without arguments, switches from the current to the other. Can be called with either dark or light to choose a specific:

./switch-themes.sh "dark"

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):

*/5 * * * * $HOME/.local/share/theme-switchers/auto-themes.sh "09:00" "23:00"

GNOME

Regarding the GNOME Desktop: Uses gsettings to switch between dark and light mode.

When called without arguments, switches from the current to the other. Can be called with either dark or light to choose a specific:

./gnome-switch-theme.sh "dark"

Helix

Regarding the Helix editor: Overrides the theme variable within the config.toml file.

When called without arguments, switches from the current to the other. Can be called with either dark or light to choose a specific:

./helix-switch-theme.sh "dark"

Requires a dark and light theme to be defined in ~/.config/helix/autothemes.toml:

theme_dark = "onedark"
theme_light = "onelight"

Clone this repository via:
git clone src.jayvii.de/pub/theme-switchers.git