summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-04-11 06:16:23 -0700
committerxyz <gky44px1999@gmail.com>2021-04-11 06:16:23 -0700
commite8fed07953a8f4c1f3f4038898485c4f8ef02bef (patch)
tree4e2103e423acc8edf5d847e66c68ec6e7ed36403
parent0795297c929cf80408a74c1889ace7d412d055fd (diff)
simplified chinese input method & .bash_profile change
-rw-r--r--.bash_profile16
-rw-r--r--.bashrc13
-rw-r--r--.local/share/fcitx5/rime/default.custom.yaml3
-rw-r--r--.xinitrc5
4 files changed, 24 insertions, 13 deletions
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 &