feat: add Alacritty light and dark themes + synchronization scripts ✨
This commit is contained in:
parent
d35b908001
commit
bd9cd434d4
9 changed files with 504 additions and 1 deletions
13
scripts/detect-system-theme.sh
Executable file
13
scripts/detect-system-theme.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Detect macOS system theme (light/dark mode)
|
||||
# Returns "light" or "dark"
|
||||
|
||||
# Get the current appearance setting
|
||||
appearance=$(defaults read -g AppleInterfaceStyle 2>/dev/null)
|
||||
|
||||
if [ "$appearance" = "Dark" ]; then
|
||||
echo "dark"
|
||||
else
|
||||
echo "light"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue