summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-06-05 09:09:47 -0500
committerzachir <zachir@librem.one>2024-06-05 09:09:47 -0500
commitf7175b21a3a6cc6965b0ea77e7c47535ce83beec (patch)
treee9c71e6db1b498ddcfecde3dd2abeac4f02215b5 /sh
parentc792a807dde9bd592cfd2dca6504c0893966de60 (diff)
Add better/more XDG support
Implements XDG support for more programs that support it, in various levels of hackiness.
Diffstat (limited to 'sh')
-rw-r--r--sh/aliases3
-rw-r--r--sh/profile7
2 files changed, 10 insertions, 0 deletions
diff --git a/sh/aliases b/sh/aliases
index a930a47..1537161 100644
--- a/sh/aliases
+++ b/sh/aliases
@@ -77,3 +77,6 @@ alias s='sudo systemctl'
## Runit
#alias ursm='env SVDIR="$HOME/.local/sv/" rsm'
+
+# XDG dirs fix
+alias svn="svn --config-dir \"$XDG_CONFIG_HOME\"/subversion"
diff --git a/sh/profile b/sh/profile
index e5c38b2..b18500d 100644
--- a/sh/profile
+++ b/sh/profile
@@ -7,6 +7,7 @@ export XDG_CURRENT_DESKTOP="i3"
export XDG_DOCUMENTS_DIR=${HOME}/Documents
export XDG_DOWNLOAD_DIR=${HOME}/Downloads
export XDG_DESKTOP_DIR=${HOME}/Desktop
+export XDG_STATE_HOME="${HOME}/.local/state"
export XDG_VIDEOS_DIR=${HOME}/Videos
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:$HOME/.nix-profile/share"
@@ -37,6 +38,7 @@ export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export ZDOTDIR=$HOME/.config/zsh
export CARGO_HOME="$XDG_DATA_HOME"/cargo
+export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc
@@ -44,6 +46,11 @@ export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug
export WINEROOT="$XDG_DATA_HOME"/wineprefixes
export WINEPREFIX="$WINEROOT"/default
export MPD_HOST="$XDG_CONFIG_HOME/mpd/socket"
+export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
+export RENPY_PATH_TO_SAVES="$XDG_DATA_HOME"
+export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
+export XAUTHORITY="$XDG_RUNTIME_DIR"/X11/Xauthority
+export VIMINIT="set nocp | source ${XDG_CONFIG_HOME:-$HOME.config}/vim/vimrc"
# Scaling
export QT_AUTO_SCREEN_SCALE_FACTOR=0