Change theme based on system appearance settings #1650
Answered
by
ShreeChaturvedi
tony-sol
asked this question in
Q&A, Howto, Help
|
Prett muchthe title - is there a way to change eza theme based on system appearance settings? E.g. for fzf i use this hack export COLORTHEME=tokyonight
export COLORSCHEME=$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo 'dark' || echo 'light')
export FZF_DEFAULT_OPTS="--color=$(<"${XDG_CONFIG_HOME}/fzf/themes/${COLORTHEME}-${COLORSCHEME}")"It looks like this could be acheived via |
Answered by
ShreeChaturvedi
Aug 24, 2026
Replies: 1 comment 1 reply
|
Same trick as your fzf line. Set Copy export COLORSCHEME=$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo 'dark' || echo 'light')
export EZA_CONFIG_DIR="${XDG_CONFIG_HOME}/eza/${COLORSCHEME}"
unset LS_COLORS EZA_COLORS |
1 reply
Answer selected by
tony-sol
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same trick as your fzf line. Set
EZA_CONFIG_DIRto a directory that already has atheme.yml. You can leave the yaml as-is.Copy
extras/eza/tokyonight_night.ymlfrom folke/tokyonight.nvim to~/.config/eza/dark/theme.ymlandtokyonight_day.ymlto~/.config/eza/light/theme.yml. The filename has to betheme.yml. The stock files are in eza-themes. UnsetLS_COLORSandEZA_COLORSor they override the yaml. Then next to the fzf export: