2020-06-25 05:48:14 +08:00
|
|
|
#
|
|
|
|
# ~/.bash_profile
|
|
|
|
#
|
|
|
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
|
|
|
2022-06-26 08:12:10 +08:00
|
|
|
# custom scripts and programs
|
|
|
|
PATH="$HOME/.local/bin:$PATH"
|
|
|
|
PATH="$HOME/.config/scripts/bin:$PATH"
|
2022-12-05 07:35:42 +08:00
|
|
|
PATH="/var/lib/flatpak/exports/bin:$PATH"
|
|
|
|
|
|
|
|
# flatpak desktop files
|
|
|
|
XDG_DATA_DIRS="/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
|
2022-06-26 08:12:10 +08:00
|
|
|
|
2022-06-26 08:46:33 +08:00
|
|
|
if grep "arch-laptop" /etc/hostname &> /dev/null ; then
|
|
|
|
export IS_LAPTOP=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# for java applicatons
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
|
2022-12-05 07:35:42 +08:00
|
|
|
export XMODIFIERS="@im=fcitx"
|
|
|
|
export QT_IM_MODULE=fcitx
|
|
|
|
export GTK_IM_MODULE=fcitx
|
|
|
|
|
2023-08-08 07:23:18 +08:00
|
|
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
|
|
|
|
|
|
|
export QT_STYLE_OVERRIDE=kvantum
|
|
|
|
|
2023-06-18 22:26:22 +08:00
|
|
|
#export GTK_USE_PORTAL=1
|
|
|
|
|
2020-06-25 05:48:14 +08:00
|
|
|
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
2022-06-17 20:20:03 +08:00
|
|
|
if [[ ! -z "$IS_LAPTOP" ]]; then
|
2023-09-07 00:50:28 +08:00
|
|
|
WLR_DRM_DEVICES=/dev/dri/card1:/dev/dri/card0 exec sway
|
2022-06-17 20:20:03 +08:00
|
|
|
else
|
|
|
|
exec start-sway.sh
|
|
|
|
fi
|
2020-06-25 05:48:14 +08:00
|
|
|
fi
|
2021-03-06 22:04:06 +08:00
|
|
|
|