41c657d5b4
Due to a KMS error, now I'm tinkering nvidia related stuff.
84 lines
2.3 KiB
Cheetah
84 lines
2.3 KiB
Cheetah
#############################################
|
|
# Disabling .xsession-errors
|
|
#############################################
|
|
# export ERRFILE=/dev/null
|
|
# export ERRFILE=/tmp/xsession-errors
|
|
|
|
#############################################
|
|
# Setting XDG-Based directories
|
|
#############################################
|
|
export XDG_RUNTIME_DIR=/run/user/1000
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
export XDG_CACHE_HOME=$HOME/.cache
|
|
export XDG_DATA_HOME=$HOME/.local/share
|
|
|
|
#############################################
|
|
# Setting XDG User directories
|
|
#############################################
|
|
## # Default Path
|
|
export XDG_DESKTOP_DIR="$HOME/ws"
|
|
export XDG_DOCUMENTS_DIR="$HOME/vc/docs"
|
|
export XDG_DOWNLOAD_DIR="$HOME/dl"
|
|
export XDG_MUSIC_DIR="$HOME/vc/audio"
|
|
export XDG_PICTURES_DIR="$HOME/vc/pix"
|
|
# export XDG_PUBLICSHARE_DIR="$HOME/Public"
|
|
# export XDG_TEMPLATES_DIR="$HOME/Templates"
|
|
export XDG_VIDEOS_DIR="$HOME/vc/vids"
|
|
|
|
# Append PATH
|
|
export PATH=$PATH:$XDG_CONFIG_HOME/rofi/scripts
|
|
export PATH=$PATH:$HOME/.local/bin
|
|
export PATH=$PATH:$HOME/.local/share/myscripts
|
|
|
|
# For GTK & QT
|
|
export GTK_IM_MODULE=fcitx
|
|
export QT_IM_MODULE=fcitx
|
|
export QT_QPA_PLATFORMTHEME='qt6ct'
|
|
export XMODIFIERS=@im=fcitx
|
|
export DefaultIMModule=fcitx
|
|
export GTK2_RC_FILES=$XDG_CONFIG_HOME/gtk-2.0/gtkrc
|
|
export GTK_THEME=Adwaita:dark
|
|
|
|
#############################################
|
|
# X11
|
|
#############################################
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
|
|
|
# Default Applications
|
|
export TERM=alacritty-256color
|
|
|
|
# For CUDA
|
|
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
|
|
|
##############################
|
|
# For Applications
|
|
##############################
|
|
|
|
# Filezilla
|
|
export FZ_DATADIR=$XDG_DATA_HOME/filezilla
|
|
|
|
# `pass` command
|
|
export PASSWORD_STORE_DIR=$XDG_DATA_HOME/password-store
|
|
|
|
# gpg (gnupg)
|
|
export GNUPGHOME=$XDG_DATA_HOME/gnupg
|
|
|
|
###############################
|
|
# xset
|
|
##############################
|
|
/bin/xset r rate 200 80
|
|
/bin/xset s off
|
|
/bin/xset -dpms
|
|
|
|
# tmux
|
|
# Cannot set config-file-path as env.
|
|
# $ tmux -f <config-file-path>
|
|
# 2020-05-07: Now, config file is ~/.config/tmux/tmux.conf
|
|
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
|
|
|
{{ if eq .chezmoi.hostname "arch" -}}
|
|
# nvidia-settings
|
|
# 2024-10-14: Comment out below one line due to KMS error.
|
|
#nvidia-settings --config="$XDG_CONFIG_HOME/nvidia/settings" --load-config-only
|
|
{{- end }}
|