Fixed environment for XRDP clients
This commit is contained in:
parent
077190eff5
commit
da97e41c2a
2 changed files with 18 additions and 40 deletions
|
|
@ -1,4 +1,5 @@
|
|||
# ZSH Configurations
|
||||
|
||||
unsetopt autocd # Change directory just by typing its name (hurts performance)
|
||||
setopt interactivecomments # Allow comments in interactive mode
|
||||
setopt magicequalsubst # Enable filename expansion for arguments of the form ‘anything=expression’
|
||||
|
|
@ -13,11 +14,11 @@ setopt hist_verify # show command with history expansion to user befo
|
|||
unsetopt ksharrays # 0-indexing arrays breaks highlighting
|
||||
|
||||
# Start gpg agent
|
||||
if [ -z "$(pidof gpg-agent)" ];
|
||||
unset SSH_AGENT_PID
|
||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
fi
|
||||
eval $(gpg-agent --daemon)
|
||||
fi
|
||||
|
||||
export PATH="$PATH:~/.local/share/cargo/bin/"
|
||||
export PATH="$PATH:$JAVA_HOME/bin/"
|
||||
|
|
@ -27,6 +28,8 @@ if [ ! -z "$(grep nixos /etc/os-release)" ]; then
|
|||
# Yes I know I'm circumventing immutability.
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
fi
|
||||
|
||||
export PATH=sourced:$PATH # Flag to prevent setting PATH multiple times
|
||||
export PATH=~/.local/bin/overrides:$PATH # Overriding /usr/bin/*
|
||||
export PATH=~/.local/bin:$PATH # Highest precedence to local bin
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,16 @@
|
|||
|
||||
# source /opt/miniconda3/etc/profile.d/conda.sh
|
||||
|
||||
export BROWSER='firefox'
|
||||
export EDITOR='nvim'
|
||||
export TERMINAL='st'
|
||||
if [ -z "$(printf $PATH | grep :sourced:)" ] && [ "$DISPLAY" = ":10.0" ]; then
|
||||
# zprofile does not get sourced when logging in through an xrdp session (for some reason), even
|
||||
# if I try to manually source it in ~/startwm.sh. This checks for if this is through xrdp (DISPLAY=:10.0)
|
||||
# and if the :sourced: flag exists in PATH.
|
||||
source ~/.config/zsh/.zprofile
|
||||
fi
|
||||
|
||||
export BROWSER="$(which firefox)"
|
||||
export EDITOR="$(which nvim)"
|
||||
export TERMINAL="$(which st)"
|
||||
|
||||
# Configuring input method
|
||||
export GTK_IM_MODULE='fcitx'
|
||||
|
|
@ -30,7 +37,6 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
|||
export SSB_HOME="$XDG_DATA_HOME/zoom"
|
||||
export TEXMFVAR="$XDG_CACHE_HOME/texlive/texmf-var"
|
||||
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
||||
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||
|
||||
export VIMINIT='let $MYVIMRC = !has("nvim") ? "$XDG_CONFIG_HOME/vim/vimrc" : "$XDG_CONFIG_HOME/nvim/init.lua" | so $MYVIMRC'
|
||||
export JAVA_HOME="/usr/lib/jvm/default/"
|
||||
|
|
@ -38,37 +44,6 @@ export XSECURELOCK_PASSWORD_PROMPT='kaomoji'
|
|||
|
||||
export WALLPAPER=~/.config/wallpaper
|
||||
|
||||
export SUDO_PROMPT="
|
||||
⢀⡔⣻⠁ ⢀⣀⣀⡀
|
||||
⢀⣾⠳⢶⣦⠤⣀ ⣾⢀⡇⡴⠋⣀⠴⣊⣩⣤⠶⠞⢹⣄
|
||||
⢸ ⢠⠈⠙⠢⣙⠲⢤⠤⠤ ⠒⠳⡄⣿⢀⠾⠓⢋⠅⠛⠉⠉⠝ ⠼
|
||||
⢸ ⢰⡀⠁ ⠈⠑⠦⡀ ⠈⠺⢿⣂ ⠉⠐⠲⡤⣄⢉⠝⢸
|
||||
⢸ ⢀⡹⠆ ⡠⠃ ⠉⠙⠲⣄ ⠙⣷⡄⢸
|
||||
⢸⡀⠙⠂⢠ ⡠⠊ ⢠ ⠘⠄ ⠑⢦⣔ ⢡⡸
|
||||
⢀⣧ ⢀⡧⣴⠯⡀ ⡎ ⢸⡠⠔⠈⠁⠙⡗⡤⣷⡀
|
||||
⡜⠈⠚⠁⣬⠓⠒⢼⠅ ⣠⡇ ⣧ ⡀⢹ ⠸⡄
|
||||
⡸ ⠘⢸⢀⠐⢃ ⡰⠋⡇ ⢠ ⡿⣆ ⣧⡈⡇⠆⢻
|
||||
⢰⠃ ⢀⡇⠼⠉ ⢸⡤⠤⣶⡖⠒⠺⢄⡀⢀⠎⡆⣸⣥⠬⠧⢴⣿⠉⠁⠸⡀⣇
|
||||
⠇ ⢸ ⣰⠋ ⢸⣿⣿ ⠙⢧⡴⢹⣿⣿ ⠈⣆ ⢧⢹⡄
|
||||
⣸ ⢠ ⢸⡀ ⢻⡀ ⢸⣿⣿ ⡼⣇⢸⣿⣿ ⢀⠏ ⢸ ⠇
|
||||
⠓⠈⢃ ⡇ ⣗⠦⣀⣿⡇ ⣀⠤⠊ ⠈⠺⢿⣃⣀⠤⠔⢸ ⣼⠑⢼
|
||||
⢸⡀⣀⣾⣷⡀ ⢸⣯⣦⡀ ⢇⣀⣀⠐⠦⣀⠘ ⢀⣰⣿⣄ ⡟
|
||||
⠛⠁⣿⣿⣧ ⣿⣿⣿⣿⣦⣀ ⣀⣠⣴⣿⣿⡿⠈⠢⣼⡇
|
||||
⠈⠁⠈⠻⠈⢻⡿⠉⣿⠿⠛⡇⠒⠒⢲⠺⢿⣿⣿⠉⠻⡿⠁ ⠈⠁
|
||||
⢀⠤⠒⠦⡀ ⢀⠞⠉⠆ ⠉⠉⠉ ⡝⣍
|
||||
⡎ ⡇ ⡰⠋ ⢸ ⢡⠈⢦
|
||||
⡇ ⠸⠁ ⢀⠜⠁ ⡸ ⠘⡄⠈⢳⡀
|
||||
⡇ ⢠ ⠠⣯⣀ ⡰⡇ ⢣ ⢀⡦⠤⢄⡀
|
||||
⢱⡀ ⠈⠳⢤⣠⠖⠋⠛⠛⢷⣄⢠⣷⠁ ⠘⡾⢳⠃ ⠘⢇
|
||||
⠙⢦⡀ ⢠⠁ ⠙⣿⣏⣀ ⣀⣴⣧⡃ ⣸
|
||||
⠈⠉⢺⣄ ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣗⣤⣀⣠⡾⠃
|
||||
⠣⢅⡤⣀⣀⣠⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠉⠉⠉
|
||||
⠉⠉⠉⠁ ⠉⣿⣿⣿⣿⣿⡿⠻⣿⣿⣿⣿⠛⠉
|
||||
⣸⣿⣿⣿ ⣿⣿⣿⡿
|
||||
⣴⣿⣿⣿⣟ ⢠⣿⣿⣿⣿⣧
|
||||
⢰⣿⣿⣿⣿⣿ ⢸⣿⣿⣿⣿⣿
|
||||
⢸⣿⣿⣿⣿⡏ ⢸⣿⣿⣿⣿⣿⡀
|
||||
⢠⣿⣿⣿⣿⣿ ⢺⣿⣿⣿⣿⣿⣿⣷
|
||||
⣿⣿⣿⣿⣿⣿ ⠈⠉⠻⣿⣿⣿⠟
|
||||
⠘⢿⣿⣿⣿⠏ Dori dori"
|
||||
export SUDO_PROMPT="$(cowsay --random $(fortune))
|
||||
Sudo password: "
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue