#!/usr/bin/env zsh local ime_sym='?' case "$(fcitx5-remote -n)" in 'keyboard-us') ime_sym='E' ;; 'mozc') ime_sym="和" ;; esac printf ' %s' "${ime_sym}"