1
0
Fork 0

Fix relpath for mode and add initial Sway support
continuous-integration/drone/push Build encountered an error Details

main
Ambrose Chua 2019-10-22 10:06:17 +08:00
parent 372f00f34b
commit 07b4654767
Signed by: ambrose
GPG Key ID: BC367D33F140B5C2
2 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
/Users/ambrose/.config/kitty/colorscheme.dark.conf
colorscheme.dark.conf

View File

@ -68,7 +68,7 @@ iterm2.run_until_complete(main)
change_kitty_theme() {
mode=($@)
rm ~/.config/kitty/colorscheme.conf
ln -s ~/.config/kitty/colorscheme.${mode[4]}.conf ~/.config/kitty/colorscheme.conf
ln -s colorscheme.${mode[4]}.conf ~/.config/kitty/colorscheme.conf
kitty @ set-colors -a ~/.config/kitty/colorscheme.conf
}
@ -86,8 +86,10 @@ if [[ -z $mode ]]; then
exit 1
fi
change_system_theme $mode
change_yabai_theme $mode
if [[ "$(uname -s)" == "Darwin" ]]; then
change_system_theme $mode
change_yabai_theme $mode
fi
if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
change_iterm2_theme $mode
fi