various updates, mainly hyprland

This commit is contained in:
2024-10-29 01:14:57 +01:00
parent 417c05c469
commit a0fb1d31f3
16 changed files with 597 additions and 55 deletions

30
.zshrc
View File

@ -81,11 +81,20 @@ source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Usually, vscode returns immediately after being run. This makes it not
# suitable for things like crontab or git, which wait until the editor has
# closed to continue. In such cases, we use the -w option to make it wait.
codewait="/usr/local/bin/code-wait.sh"
if [ ! -e $codewait ]; then
echo "Waiting version of vscode is missing."
fi
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='nano'
else
export EDITOR='code'
export EDITOR=$codewait
export VISUAL=$codewait
fi
# Compilation flags
@ -136,6 +145,7 @@ alias wol=wakeonlan
alias ge=gnome-extensions
alias open="xdg-open"
alias lg="lazygit"
alias wstmux="cd ~/code/wasteside && tmux new -A -s wasteside"
alias R="R --no-save"
@ -146,7 +156,7 @@ export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
# vscode shortcuts
alias ws="cd ~/code/wasteside && code . && tmux new -A -s wasteside"
alias ws="cd ~/code/wasteside/app && code . && tmux new -A -s wasteside"
# Fix ls colors for synology directories
LS_COLORS+=':ow=01;33'
@ -167,19 +177,9 @@ bms # run it, so it reloads on terminal open
# zoxide
eval "$(zoxide init --cmd cd zsh)"
# disable suspend while ssh is active
if [ "$SSH_CLIENT" ] &&
! pstree -ps $$ |
grep -q -- '-systemd-inhibit(' >/dev/null; then
echo "Inhibiting automatic standby"
exec /usr/bin/systemd-inhibit \
--what=idle --why='Interactive SSH Session' -- \
"$SHELL" "$@"
fi
# SDKMAN & Java
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
# Yarn
export PATH="$HOME/.yarn/bin:$PATH"