2023-03-29 22:21:02 -04:00
|
|
|
#
|
2023-04-02 02:36:17 -04:00
|
|
|
# ~/.bash_profile
|
2023-03-29 22:21:02 -04:00
|
|
|
#
|
|
|
|
|
2023-04-02 02:36:17 -04:00
|
|
|
export EDITOR=nvim
|
|
|
|
export VISUAL=emacs
|
|
|
|
|
2023-03-28 21:33:57 -04:00
|
|
|
# Ensure XDG env vars are set correctly
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
export XDG_STATE_HOME="$HOME/.local/state"
|
|
|
|
|
|
|
|
# add .local/bin to $PATH
|
|
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
|
2022-12-22 04:07:12 -05:00
|
|
|
# make Java behave when not using a DE
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2023-03-28 21:33:57 -04:00
|
|
|
|
2023-04-02 02:36:17 -04:00
|
|
|
# Sometimes needed for gpg passphrase prompt
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
|
2023-06-15 01:21:31 -04:00
|
|
|
# Mozilla + Wayland
|
2023-06-15 04:08:49 -04:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2023-06-15 01:21:31 -04:00
|
|
|
|
2023-03-28 21:33:57 -04:00
|
|
|
# xsecurelock settings
|
|
|
|
export XSECURELOCK_AUTH=auth_x11
|
|
|
|
export XSECURELOCK_AUTHPROTO=authproto_pam
|
|
|
|
export XSECURELOCK_BURNIN_MITIGATION=300
|
|
|
|
export XSECURELOCK_PASSWORD_PROMPT=time
|
|
|
|
|
2022-12-28 14:56:33 -05:00
|
|
|
{{- if eq .chezmoi.hostname "helix" }}
|
2023-03-28 21:33:57 -04:00
|
|
|
# scale GTK applicatons on hidpi screens
|
2022-12-22 04:07:12 -05:00
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 thunar
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE="0.50 Simple-scan"
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 lutris
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 spotify
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 pinta
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 Gajim
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 Ristretto
|
|
|
|
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 ghex
|
2022-12-28 14:56:33 -05:00
|
|
|
{{- end }}
|
2023-03-29 01:48:32 -04:00
|
|
|
|
|
|
|
## No littering in $HOME!
|
|
|
|
|
|
|
|
# bash
|
2023-03-29 22:21:02 -04:00
|
|
|
export HISTFILE="$XDG_STATE_HOME"/bash_history
|
2023-03-29 01:48:32 -04:00
|
|
|
|
|
|
|
# cargo
|
|
|
|
export CARGO_HOME="$XDG_DATA_HOME"/cargo
|
|
|
|
|
|
|
|
# go
|
|
|
|
export GOPATH="$XDG_DATA_HOME"/go
|
|
|
|
export GOMODCACHE="$XDG_CACHE_HOME"/go/mod
|
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# gpg
|
|
|
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
|
|
|
|
|
|
|
# gtk2
|
2023-03-29 01:48:32 -04:00
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# node
|
2023-03-29 01:48:32 -04:00
|
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# python
|
|
|
|
export PYTHONSTARTUP="$XDG_CONFIG_HOME"/python/pythonrc
|
|
|
|
export PYTHONPYCACHEPREFIX="$XDG_CACHE_HOME"/python
|
|
|
|
export PYTHONUSERBASE=$XDG_DATA_HOME/python
|
|
|
|
|
|
|
|
# wine
|
|
|
|
export WINEPREFIX="$XDG_DATA_HOME"/wine
|
|
|
|
|
2023-03-29 01:48:32 -04:00
|
|
|
# Xorg
|
|
|
|
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
|
|
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
2023-04-02 02:36:17 -04:00
|
|
|
|
|
|
|
# Source other dotfiles
|
|
|
|
[[ -f ~/.profile ]] && . ~/.profile
|
|
|
|
|
|
|
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
|
|
|
2023-06-15 01:21:31 -04:00
|
|
|
# start river
|
|
|
|
[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river
|
2023-04-02 02:36:17 -04:00
|
|
|
|