2016-04-01 12:45:17 +01:00
|
|
|
export LC_ALL=en_GB.UTF-8
|
2016-03-31 22:34:07 +01:00
|
|
|
export LANG=en_GB.UTF-8
|
|
|
|
export LC_NUMERIC=en_GB
|
2016-03-31 03:03:55 +01:00
|
|
|
|
2016-09-01 14:16:13 +01:00
|
|
|
export CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
|
|
export DOTFILES=$CONFIG_DIR/dotfiles
|
2016-03-31 03:03:55 +01:00
|
|
|
export PATH="${PATH}:$DOTFILES/scripts"
|
2016-04-19 17:12:23 +01:00
|
|
|
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
|
2016-03-31 03:03:55 +01:00
|
|
|
|
|
|
|
export EDITOR="vim"
|
|
|
|
export VISUAL="vim"
|
2016-05-01 14:28:39 +01:00
|
|
|
export PAGER="less -R"
|
2016-05-16 17:43:27 +01:00
|
|
|
export TERMINAL="termite"
|
2016-09-01 14:15:31 +01:00
|
|
|
export BROWSER="chromium"
|
2016-03-31 03:03:55 +01:00
|
|
|
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
2017-02-25 02:45:56 +00:00
|
|
|
export QT_QPA_PLATFORMTHEME=gtk2
|
2016-07-19 23:33:03 +01:00
|
|
|
|
2017-10-03 09:34:02 +01:00
|
|
|
# Source secret keys and values into environment
|
|
|
|
if [ -f "$CONFIG_DIR/secrets" ]; then
|
|
|
|
set -o allexport
|
|
|
|
source $CONFIG_DIR/secrets
|
|
|
|
set +o allexport
|
|
|
|
fi
|
|
|
|
|
2016-08-26 21:32:31 +01:00
|
|
|
# Merge system clipboards
|
2016-10-05 00:10:16 +01:00
|
|
|
if ! [ -z $DISPLAY ] && which autocutsel &>/dev/null; then
|
2016-09-01 14:48:17 +01:00
|
|
|
autocutsel -fork &
|
|
|
|
autocutsel -selection PRIMARY -fork &
|
|
|
|
fi
|
2016-08-26 21:32:31 +01:00
|
|
|
|
2017-07-09 00:09:12 +01:00
|
|
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
|
|
|
eval $(dbus-launch --sh-syntax --exit-with-session)
|
|
|
|
dbus-update-activation-environment --systemd DISPLAY
|
|
|
|
export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
|
|
|
|
export SSH_AUTH_SOCK
|
2016-07-20 16:25:24 +01:00
|
|
|
fi
|