use more conservative glyphs in 'compatible' and 'powerline' mode

See #265.
pull/298/head
romkatv 5 years ago
parent dfe6a86eb3
commit e7520409d1

@ -446,7 +446,7 @@ function _p9k_init_icons() {
AWS_EB_ICON '\U1F331' # 🌱 AWS_EB_ICON '\U1F331' # 🌱
BACKGROUND_JOBS_ICON '\u2699' # ⚙ BACKGROUND_JOBS_ICON '\u2699' # ⚙
TEST_ICON '' TEST_ICON ''
TODO_ICON '\u2611' # ☑ TODO_ICON '\u2611' # ☑ (portable alternatives: ▼ ∆)
BATTERY_ICON '\U1F50B' # 🔋 BATTERY_ICON '\U1F50B' # 🔋
DISK_ICON 'hdd' DISK_ICON 'hdd'
OK_ICON '\u2714' # ✔ OK_ICON '\u2714' # ✔

@ -1413,11 +1413,28 @@ function generate_config() {
sub VPN_IP_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'" sub VPN_IP_VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER}'"
fi fi
if [[ $POWERLEVEL9K_MODE == compatible ]]; then if [[ $POWERLEVEL9K_MODE == (compatible|powerline) ]]; then
# Many fonts don't have the gear or the lock icon. # Many fonts don't have the default icons.
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'⇶'" [[ $POWERLEVEL9K_MODE == compatible ]] && local error='х' || local error='✘'
uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION'
sub STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION "'$error'"
uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION'
sub STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION "'$error'"
uncomment 'typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION'
sub STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION "'$error'"
uncomment 'typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION' uncomment 'typeset -g POWERLEVEL9K_DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION'
sub DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION "'∅'" sub DIR_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION "'∅'"
uncomment 'typeset -g POWERLEVEL9K_TERRAFORM_VISUAL_IDENTIFIER_EXPANSION'
sub TERRAFORM_VISUAL_IDENTIFIER_EXPANSION "'tf'"
uncomment 'typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION'
sub RANGER_VISUAL_IDENTIFIER_EXPANSION "'▲'"
uncomment 'typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION'
sub KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION "'○'"
uncomment 'typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION'
sub AZURE_VISUAL_IDENTIFIER_EXPANSION "'az'"
uncomment 'typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION'
sub AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION "'eb'"
sub BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION "'≡'"
fi fi
if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then if [[ $POWERLEVEL9K_MODE == (awesome-patched|awesome-fontconfig) && $cap_python == 0 ]]; then

Loading…
Cancel
Save