mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
14 lines
482 B
Fish
14 lines
482 B
Fish
switch (uname)
|
|
case "Linux"
|
|
set SYSTEM_COLOR_SCHEME (gsettings get org.gnome.desktop.interface color-scheme)
|
|
if test $SYSTEM_COLOR_SCHEME = "'prefer-dark'"
|
|
fish_config theme choose "Catppuccin Mocha"
|
|
else
|
|
fish_config theme choose "Catppuccin Latte"
|
|
end
|
|
case "Darwin"
|
|
set SYSTEM_COLOR_SCHEME defaults read -g AppleInterfaceStyle
|
|
echo "[TODO] Check if dark mode is enabled in macOS"
|
|
case '*'
|
|
fish_config theme choose "Catppuccin Mocha"
|
|
end
|