Config: Add more XDG base directories

This commit is contained in:
Riyyi
2022-08-12 13:57:00 +02:00
parent a4bf47770c
commit 82171e6684
2 changed files with 35 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
# -*- python -*-
import os
import atexit
import readline
history = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history')
try:
readline.read_history_file(history)
except OSError:
pass
def write_history():
try:
readline.write_history_file(history)
except OSError:
pass
atexit.register(write_history)
+16 -2
View File
@@ -1,4 +1,4 @@
## Settings
#--- General ---#
# Directories
export CAPTURE="$HOME/pictures/screen-captures"
@@ -20,11 +20,15 @@ export PLATFORMIO_HOME_DIR="$XDG_DATA_HOME/platformio"
export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron"
# HiDPI screen
# >>> hostname=arch-laptop
# export HIDPI=true
# <<<
#--- Program Specific ---#
# Android
export ANDROID_HOME="$XDG_DATA_HOME/android"
# GPG
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
@@ -67,6 +71,9 @@ export RANDFILE="$XDG_CACHE_HOME/rnd"
[ "$HIDPI" = true ] && export PANEL_HEIGHT=38 || export PANEL_HEIGHT=22
export PANEL_NAME="polybar_panel"
# Python
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
# Qt5
if [ "$HIDPI" = true ]; then
export QT_AUTO_SCREEN_SCALE_FACTOR=0
@@ -74,6 +81,10 @@ if [ "$HIDPI" = true ]; then
fi
export QT_QPA_PLATFORMTHEME="qt5gtk2"
# Rust
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
# Sudo
export SUDO_ASKPASS="$HOME/.local/bin/rofipass"
@@ -89,6 +100,9 @@ export BROWSER="firefox"
# Wget
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
# Wine
export WINEPREFIX="$XDG_DATA_HOME/wine"
# WM
export WM="bspwm"