Created
September 5, 2022 09:02
-
-
Save soyuka/9e9b2591499a1cdc84724949667814e6 to your computer and use it in GitHub Desktop.
Switch theme alacritty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
from=$(cat ~/.config/sway/current_scheme) | |
if [ "$from" = "black" ]; then | |
from=black | |
to=white | |
else | |
from=white | |
to=black | |
fi | |
alacritty="s/color.${from}.yml/color.${to}.yml/g" | |
vim="s/color.${from}/color.${to}/g" | |
sed -i -e $alacritty ~/.config/alacritty/alacritty.yml | |
sed -i -e $vim ~/.vimrc | |
echo $to > ~/.config/sway/current_scheme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment