more changes to the theme stuff
This commit is contained in:
parent
689160358f
commit
4d731b510f
|
@ -4,7 +4,10 @@ PATH=$PATH:~/.local/bin
|
||||||
|
|
||||||
function set_light () {
|
function set_light () {
|
||||||
sed -i -r "/set background=/s/=.*/=light/g" ~/sources/gitea_irisib/vimrc/visual.vimrc
|
sed -i -r "/set background=/s/=.*/=light/g" ~/sources/gitea_irisib/vimrc/visual.vimrc
|
||||||
nvr --remote-send "<esc>:set background=light<enter><esc>"
|
if ! [[ -z $(nvr --serverlist) ]]; then
|
||||||
|
nvr --remote-send "<esc>:set background=light<enter><esc>"
|
||||||
|
fi
|
||||||
|
rm /tmp/nvimsocket 2> /dev/null
|
||||||
kitty @ set-colors -a "~/.config/kitty/solarized_light.conf"
|
kitty @ set-colors -a "~/.config/kitty/solarized_light.conf"
|
||||||
rm ~/.config/kitty/theme.conf 2> /dev/null
|
rm ~/.config/kitty/theme.conf 2> /dev/null
|
||||||
ln -s ~/.config/kitty/solarized_light.conf ~/.config/kitty/theme.conf
|
ln -s ~/.config/kitty/solarized_light.conf ~/.config/kitty/theme.conf
|
||||||
|
@ -12,7 +15,10 @@ function set_light () {
|
||||||
|
|
||||||
function set_dark () {
|
function set_dark () {
|
||||||
sed -i -r "/set background=/s/=.*/=dark/g" ~/sources/gitea_irisib/vimrc/visual.vimrc
|
sed -i -r "/set background=/s/=.*/=dark/g" ~/sources/gitea_irisib/vimrc/visual.vimrc
|
||||||
nvr --remote-send "<esc>:set background=dark<enter><esc>"
|
if ! [[ -z $(nvr --serverlist) ]]; then
|
||||||
|
nvr --remote-send "<esc>:set background=dark<enter><esc>"
|
||||||
|
fi
|
||||||
|
rm /tmp/nvimsocket 2> /dev/null
|
||||||
kitty @ set-colors -a "~/.config/kitty/solarized_dark.conf"
|
kitty @ set-colors -a "~/.config/kitty/solarized_dark.conf"
|
||||||
rm ~/.config/kitty/theme.conf 2> /dev/null
|
rm ~/.config/kitty/theme.conf 2> /dev/null
|
||||||
ln -s ~/.config/kitty/solarized_dark.conf ~/.config/kitty/theme.conf
|
ln -s ~/.config/kitty/solarized_dark.conf ~/.config/kitty/theme.conf
|
||||||
|
|
2
xonshrc
2
xonshrc
|
@ -42,3 +42,5 @@ xontrib load sh
|
||||||
|
|
||||||
$PATH.append("~/.local/bin")
|
$PATH.append("~/.local/bin")
|
||||||
aliases["vim"] = ["nvim", "--listen", "/tmp/nvimsocket"]
|
aliases["vim"] = ["nvim", "--listen", "/tmp/nvimsocket"]
|
||||||
|
aliases["dark"] = ["bash", "~/sources/gitea_irisib/bootstrap/theme_switch.sh", "dark"]
|
||||||
|
aliases["light"] = ["bash", "~/sources/gitea_irisib/bootstrap/theme_switch.sh", "light"]
|
||||||
|
|
Loading…
Reference in New Issue