From e8fed07953a8f4c1f3f4038898485c4f8ef02bef Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 11 Apr 2021 06:16:23 -0700 Subject: simplified chinese input method & .bash_profile change --- .bash_profile | 16 ++++++++++++++++ .bashrc | 13 ------------- .local/share/fcitx5/rime/default.custom.yaml | 3 +++ .xinitrc | 5 +++++ 4 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .bash_profile create mode 100644 .local/share/fcitx5/rime/default.custom.yaml diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 00000000..34b767f1 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,16 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc + +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_DATA_HOME="$HOME/.local/share" +export SSH_AUTH_SOCK="XDG_RUNTIME_DIR/ssh-agent.socket" +export MANPAGER='nvim +Man!' + +# startx when login, should be put after environmental variables so .xinitrc can use $XDG_CONFIG_HOME +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi diff --git a/.bashrc b/.bashrc index ce0e1b12..f070a748 100644 --- a/.bashrc +++ b/.bashrc @@ -10,16 +10,3 @@ PS1='[\u@\h \W]\$ ' alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME' alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME' - -export XDG_CONFIG_HOME="$HOME/.config" -export XDG_CACHE_HOME="$HOME/.cache" -export XDG_DATA_HOME="$HOME/.local/share" - -export SSH_AUTH_SOCK="XDG_RUNTIME_DIR/ssh-agent.socket" - -export MANPAGER='nvim +Man!' - -# startx when login, should be put after environmental variables so .xinitrc can use $XDG_CONFIG_HOME -if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then - exec startx -fi diff --git a/.local/share/fcitx5/rime/default.custom.yaml b/.local/share/fcitx5/rime/default.custom.yaml new file mode 100644 index 00000000..9df2033e --- /dev/null +++ b/.local/share/fcitx5/rime/default.custom.yaml @@ -0,0 +1,3 @@ +patch: + schema_list: + - schema: luna_pinyin_simp diff --git a/.xinitrc b/.xinitrc index 8f1c8ffd..a7bb44b0 100644 --- a/.xinitrc +++ b/.xinitrc @@ -32,6 +32,11 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then unset f fi +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx + +fcitx5 & $HOME/programs/my_scripts/set_dwm_status_bar.sh & xwallpaper --maximize $XDG_CONFIG_HOME/wallpaper.png redshift & -- cgit v1.2.3-70-g09d2