system: move GUI-related env vars to /etc/environment

This commit is contained in:
FollieHiyuki 2021-10-19 13:06:37 +07:00
parent ceb46755cd
commit d483163cda
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
5 changed files with 19 additions and 28 deletions

View File

@ -48,8 +48,6 @@ export SVDIR=$HOME/.local/share/service
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export GPG_TTY="$(tty)" export GPG_TTY="$(tty)"
export GOPROXY=direct export GOPROXY=direct
# pfetch
export PF_INFO="ascii title kernel wm shell uptime pkgs memory"
# fzf # fzf
export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info
--bind alt-j:preview-down,alt-k:preview-up --bind alt-j:preview-down,alt-k:preview-up
@ -65,13 +63,6 @@ export FZF_CTRL_T_COMMAND="fd --follow --hidden --exclude .git"
export FZF_ALT_C_OPTS="--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'" export FZF_ALT_C_OPTS="--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'"
export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git" export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git"
export FZF_TMUX=1 export FZF_TMUX=1
# ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# qt5ct
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_PLATFORM_PLUGIN=qt5ct
# .NET # .NET
export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1
# zoxide # zoxide

View File

@ -59,8 +59,6 @@ set -gx SVDIR $HOME/.local/share/service
set -gx _JAVA_AWT_WM_NONREPARENTING 1 set -gx _JAVA_AWT_WM_NONREPARENTING 1
set -gx GPG_TTY (tty) set -gx GPG_TTY (tty)
set -gx GOPROXY direct set -gx GOPROXY direct
# pfetch
set -gx PF_INFO "ascii title kernel wm shell uptime pkgs memory"
# fzf # fzf
set -gx FZF_DEFAULT_OPTS "--multi --layout=reverse --inline-info set -gx FZF_DEFAULT_OPTS "--multi --layout=reverse --inline-info
--bind alt-j:preview-down,alt-k:preview-up --bind alt-j:preview-down,alt-k:preview-up
@ -76,13 +74,6 @@ set -gx FZF_CTRL_T_COMMAND "fd . \$dir --follow --hidden --exclude .git"
set -gx FZF_ALT_C_OPTS "--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'" set -gx FZF_ALT_C_OPTS "--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'"
set -gx FZF_ALT_C_COMMAND "fd --type d --follow --hidden --exclude .git" set -gx FZF_ALT_C_COMMAND "fd --type d --follow --hidden --exclude .git"
set -gx FZF_TMUX 1 set -gx FZF_TMUX 1
# ibus
set -gx GTK_IM_MODULE ibus
set -gx XMODIFIERS @im=ibus
set -gx QT_IM_MODULE ibus
# qt5ct
set -gx QT_QPA_PLATFORMTHEME qt5ct
set -gx QT_PLATFORM_PLUGIN qt5ct
# .NET # .NET
set -gx DOTNET_CLI_TELEMETRY_OPTOUT 1 set -gx DOTNET_CLI_TELEMETRY_OPTOUT 1
# nodenv # nodenv

View File

@ -46,8 +46,6 @@ export SVDIR=$XDG_DATA_HOME/service
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export GPG_TTY="$(tty)" export GPG_TTY="$(tty)"
export GOPROXY=direct export GOPROXY=direct
# pfetch
export PF_INFO="ascii title kernel wm shell uptime pkgs memory"
# fzf # fzf
export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info export FZF_DEFAULT_OPTS="--multi --layout=reverse --inline-info
--bind alt-j:preview-down,alt-k:preview-up --bind alt-j:preview-down,alt-k:preview-up
@ -63,13 +61,6 @@ export FZF_CTRL_T_COMMAND="fd --follow --hidden --exclude .git"
export FZF_ALT_C_OPTS="--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'" export FZF_ALT_C_OPTS="--preview 'exa -1a --sort=type --color always --icons {} 2>/dev/null'"
export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git" export FZF_ALT_C_COMMAND="fd --type d --follow --hidden --exclude .git"
export FZF_TMUX=1 export FZF_TMUX=1
# ibus
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus
# qt5ct
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_PLATFORM_PLUGIN=qt5ct
# .NET # .NET
export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1
# nodenv # nodenv

View File

@ -1 +0,0 @@
TERM=xterm-256color

19
system/etc/environment Normal file
View File

@ -0,0 +1,19 @@
########
# ibus #
########
# GTK_IM_MODULE=ibus
# XMODIFIERS=@im=ibus
# QT_IM_MODULE=ibus
##########
# fcitx5 #
##########
GTK_IM_MODULE=fcitx
XMODIFIERS=@im=fcitx
QT_IM_MODULE=fcitx
#########
# qt5ct #
#########
QT_QPA_PLATFORMTHEME=qt5ct
QT_PLATFORM_PLUGIN=qt5ct