12 lines
413 B
Bash
Executable file
12 lines
413 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Adjusts Alacritty color scheme to match macOS dark/light mode setting
|
|
|
|
mode=$(defaults read -g AppleInterfaceStyle 2>/dev/null || echo "Light")
|
|
alacritty_config=~/.config/alacritty/alacritty.toml
|
|
|
|
if [ "$mode" = "Dark" ]; then
|
|
sed -i '' "s#rose-pine-dawn.toml#rose-pine-moon.toml#" $alacritty_config
|
|
else
|
|
sed -i '' "s#rose-pine-moon.toml#rose-pine-dawn.toml#" $alacritty_config
|
|
fi
|