.dotfiles/bash/bash_login

36 lines
905 B
Bash

#!/bin/bash
# Load aliases
source ${HOME}/.dotfiles/bash/bash_aliases
# 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
export SWAYSOCK="${HOME}/.spool/sway-ipc.sock"
# 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
export GTK_THEME="Oled"
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
echo "Use 'startsway' or 'starti3' to launch a GUI"
fi