blob: f4bdf6bc28266dd92b2d07896ca436c987800aea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
COLORSCHEME="dark"
if [ -f $HOME/.cache/colorscheme ]; then
. $HOME/.cache/colorscheme
fi
case $COLORSCHEME in
dark)
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
COLORSCHEME="light" ;;
*)
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
COLORSCHEME="dark" ;;
esac
echo "export COLORSCHEME=$COLORSCHEME" > $HOME/.cache/colorscheme
sed -i -r --follow-symlinks "s/(light|dark)/$COLORSCHEME/g" $HOME/.config/alacritty/alacritty.toml
pkill -SIGUSR1 zsh
pkill -SIGUSR1 nvim
|