.s/scripts/theme/hooks/discord.sh

11 lines
419 B
Bash
Raw Permalink Normal View History

2024-05-27 16:57:39 -04:00
#!/bin/bash
OLD_THEME=$1
NEW_THEME=$2
if [ $NEW_THEME = "dark" ]; then
echo '@import url("https://catppuccin.github.io/discord/dist/catppuccin-mocha.theme.css");' > "$HOME/Library/Application Support/BetterDiscord/data/stable/custom.css"
else
echo '@import url("https://catppuccin.github.io/discord/dist/catppuccin-latte.theme.css");' > "$HOME/Library/Application Support/BetterDiscord/data/stable/custom.css"
fi