Update environment variables.

- Added flatpak bin directory to path, and also the desktop files to
  $XDG_DATA_DIRS
- Export fcitx environment variables.
This commit is contained in:
Sheldon Lee 2022-12-04 23:35:42 +00:00
parent 35842c95e7
commit 74698b5673

View File

@ -7,6 +7,10 @@
# custom scripts and programs # custom scripts and programs
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.config/scripts/bin:$PATH" PATH="$HOME/.config/scripts/bin:$PATH"
PATH="/var/lib/flatpak/exports/bin:$PATH"
# flatpak desktop files
XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
if grep "arch-laptop" /etc/hostname &> /dev/null ; then if grep "arch-laptop" /etc/hostname &> /dev/null ; then
export IS_LAPTOP=1 export IS_LAPTOP=1
@ -15,6 +19,10 @@ fi
# for java applicatons # for java applicatons
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export XMODIFIERS="@im=fcitx"
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
if [[ ! -z "$IS_LAPTOP" ]]; then if [[ ! -z "$IS_LAPTOP" ]]; then
WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 dbus-run-session sway