~shom/alacritty-auto-theme

e8ce165f33b89fabb5715bd1a4da81588fe5cd95 — Shom Bandopadhaya 4 months ago 810ceb0 main
Manual override and fixed typo in alias
1 files changed, 7 insertions(+), 4 deletions(-)

M README.md
M README.md => README.md +7 -4
@@ 48,10 48,13 @@ systemctl --user start AlacrittyAutoTheme.service
```
That's it, now when you switch your system theme, all Alacritty windows will also switch the respective light/dark themes you picked.

## Alternate Usage
Since this script is dependent on Gnome and systemd if you want to use it "manually" you can create an alias for switching to your preferred theme by calling `alacritty-light` or `alacritty-dark`: 
## Alternate Usage / Manual Override
If you want to manually override the light/dark theme independent of the system theme. It will reset to the system theme the next time the system theme changes. You can call `alacritty-light` or `alacritty-dark`.

Also, since this script is dependent on Gnome and systemd if you want to use it "manually" by calling the aliases.

``` sh
alias alacritty-light="echo \"import = [ '.~/.config/alacritty/alacritty-auto-theme/light_theme.toml' ]\" > ~/.config/alacritty/alacritty-auto-theme/theme.toml"
alias alacritty-dark="echo \"import = [ '.~/.config/alacritty/alacritty-auto-theme/dark_theme.toml' ]\" > ~/.config/alacritty/alacritty-auto-theme/theme.toml"
alias alacritty-light="echo \"import = [ '~/.config/alacritty/alacritty-auto-theme/light_theme.toml' ]\" > ~/.config/alacritty/alacritty-auto-theme/theme.toml"
alias alacritty-dark="echo \"import = [ '~/.config/alacritty/alacritty-auto-theme/dark_theme.toml' ]\" > ~/.config/alacritty/alacritty-auto-theme/theme.toml"
```