.dotfiles/bash/bash_login

38 lines
1.0 KiB
Bash
Raw Normal View History

2022-04-16 19:54:07 +00:00
#!/bin/bash
2022-06-07 12:06:58 +00:00
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
2022-04-16 19:54:07 +00:00
# Load aliases
source ${HOME}/.dotfiles/bash/bash_aliases
2022-04-16 19:54:07 +00:00
# Configure static SSH Agent
export SSH_AUTH_SOCK=~/.ssh/ssh-agent.sock
if [ -e $SSH_AUTH_SOCK ]; then
rm $SSH_AUTH_SOCK
fi
ssh-agent -a "$SSH_AUTH_SOCK" >/dev/null
# Static/predictable Sway socket
2022-06-07 12:06:58 +00:00
export SWAYSOCK=`sway --get-socketpath`
2022-04-16 19:54:07 +00:00
# Standardize language on en_US because of the ubiquity
export LANG="en_US.UTF-8"
export LANGUAGE="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# Dirty config dir
export XDG_DATA_HOME="${HOME}/.config"
# GUI themes
2022-09-12 15:32:24 +00:00
export GTK_THEME="Flat-Remix-GTK-Blue-Darkest-Solid-NoBorder"
2022-04-16 19:54:07 +00:00
export PROFILE_NAME="Oled"
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_QPA_PLATFORM="wayland-egl;wayland;xcb"
export DCONF=".config/dconf/user"
# Suggest session start command if last session is not known
if [ ! -e ${HOME}/.spool/last_login_gui ]; then
2022-04-16 19:54:07 +00:00
echo "Use 'startsway' or 'starti3' to launch a GUI"
fi