Added dark/light mode switchers
This commit is contained in:
parent
700cc5c938
commit
7c51568d3f
5
bin/dark
Executable file
5
bin/dark
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sed --in-place --follow-symlinks --expression "s/^colors: \*light/colors: *dark/" ~/.config/alacritty/alacritty.yml
|
||||||
|
sed --in-place --follow-symlinks --expression "s/^set background=light/set background=dark/" ~/.config/nvim/init.vim
|
||||||
|
sed --in-place --follow-symlinks --expression "s/light/dark/" ~/.tmux.conf && tmux source-file ~/.tmux.conf
|
7
bin/install.sh
Executable file
7
bin/install.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
TARGET_DIR=~/.local/bin
|
||||||
|
|
||||||
|
mkdir --parents ~/.local/bin
|
||||||
|
ln -svrf light ${TARGET_DIR}/light
|
||||||
|
ln -svrf dark ${TARGET_DIR}/dark
|
5
bin/light
Executable file
5
bin/light
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
sed --in-place --follow-symlinks --expression "s/^colors: \*dark/colors: *light/" ~/.config/alacritty/alacritty.yml
|
||||||
|
sed --in-place --follow-symlinks --expression "s/^set background=dark/set background=light/" ~/.config/nvim/init.vim
|
||||||
|
sed --in-place --follow-symlinks --expression "s/dark/light/" ~/.tmux.conf && tmux source-file ~/.tmux.conf
|
Reference in New Issue
Block a user