dotfiles/dot_profile.tmpl

53 lines
1.4 KiB
Cheetah
Raw Normal View History

# 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
# xsecurelock settings
export XSECURELOCK_AUTH=auth_x11
export XSECURELOCK_AUTHPROTO=authproto_pam
export XSECURELOCK_BURNIN_MITIGATION=300
export XSECURELOCK_PASSWORD_PROMPT=time
{{- if eq .chezmoi.hostname "helix" }}
# 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
{{- end }}
2023-03-29 01:48:32 -04:00
## No littering in $HOME!
# bash
export HISTFILE="${XDG_STATE_HOME}"/bash_history
# cargo
export CARGO_HOME="$XDG_DATA_HOME"/cargo
# go
export GOPATH="$XDG_DATA_HOME"/go
export GOMODCACHE="$XDG_CACHE_HOME"/go/mod
# GTK2
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
# Node
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
# Xorg
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
xrdb -load "$XDG_CONFIG_HOME/X11/Xresources"