Browse Source

Config: Add more XDG base directories

master
Riyyi 2 years ago
parent
commit
82171e6684
  1. 19
      .config/python/pythonrc
  2. 18
      .config/zsh/.zprofile

19
.config/python/pythonrc

@ -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)

18
.config/zsh/.zprofile

@ -1,4 +1,4 @@
## Settings #--- General ---#
# Directories # Directories
export CAPTURE="$HOME/pictures/screen-captures" 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" export R_ENVIRON_USER="$XDG_CONFIG_HOME/R/Renviron"
# HiDPI screen # HiDPI screen
# >>> hostname=arch-laptop # >>> hostname=arch-laptop
# export HIDPI=true # export HIDPI=true
# <<< # <<<
#--- Program Specific ---#
# Android
export ANDROID_HOME="$XDG_DATA_HOME/android"
# GPG # GPG
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg" 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 [ "$HIDPI" = true ] && export PANEL_HEIGHT=38 || export PANEL_HEIGHT=22
export PANEL_NAME="polybar_panel" export PANEL_NAME="polybar_panel"
# Python
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
# Qt5 # Qt5
if [ "$HIDPI" = true ]; then if [ "$HIDPI" = true ]; then
export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_AUTO_SCREEN_SCALE_FACTOR=0
@ -74,6 +81,10 @@ if [ "$HIDPI" = true ]; then
fi fi
export QT_QPA_PLATFORMTHEME="qt5gtk2" export QT_QPA_PLATFORMTHEME="qt5gtk2"
# Rust
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
# Sudo # Sudo
export SUDO_ASKPASS="$HOME/.local/bin/rofipass" export SUDO_ASKPASS="$HOME/.local/bin/rofipass"
@ -89,6 +100,9 @@ export BROWSER="firefox"
# Wget # Wget
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
# Wine
export WINEPREFIX="$XDG_DATA_HOME/wine"
# WM # WM
export WM="bspwm" export WM="bspwm"

Loading…
Cancel
Save