From 660254d03331c73366c0a1241b1e361ac0e2c88b Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 5 Oct 2016 11:09:14 +0200 Subject: zprofile: Use ibus instead of xim MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- zsh/.zprofile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'zsh') diff --git a/zsh/.zprofile b/zsh/.zprofile index 83b16c5..cf99c58 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -34,8 +34,6 @@ export LESSHISTFILE="$XDG_CACHE_HOME"/lesshist export SDL_AUDIODRIVER=pulse -export GTK_IM_MODULE=xim - export SUDO_PROMPT=$'\e[31mSUDO\e[m password for \e[34m%p\e[m: ' export SHORTHOST=$(hostname -s) @@ -45,13 +43,17 @@ export VIRTUAL_ENV_DISABLE_PROMPT=1 export FIGLET_FONTDIR="$HOME"/.local/share/figlet -if [[ -f "$ZDOTDIR"/profile-"$SHORTHOST" ]]; then - source "$ZDOTDIR"/profile-"$SHORTHOST" -fi +export GTK_IM_MODULE=ibus +export XMODIFIERS=@im=ibus +export QT_IM_MODULE=ibus # LS_COLORS is now required for `ls` to use colors source <(dircolors -b "$XDG_CONFIG_HOME"/dircolors) +if [[ -f "$ZDOTDIR"/profile-"$SHORTHOST" ]]; then + source "$ZDOTDIR"/profile-"$SHORTHOST" +fi + if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then exec startx "$XDG_CONFIG_HOME"/X11/xinitrc -- -configdir "$XDG_CONFIG_HOME"/X11/xorg.conf.d fi -- cgit v1.2.3-54-g00ecf