# If using sway then use pywal theme if [[ $XDG_SESSION_DESKTOP == "sway" ]]; then cat ~/.cache/wal/sequences export XDG_CURRENT_DESKTOP=sway fi # if using wayland allow native rendering if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then export MOZ_ENABLE_WAYLAND=1 export QT_QPA_PLATFORM=wayland export GDK_BACKEND="wayland,x11" fi # Lines configured by zsh-newuser-install HISTFILE="$XDG_CONFIG_HOME/zsh/histfile" HISTSIZE=1000 SAVEHIST=10000 setopt autocd unsetopt beep bindkey -v # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename "$XDG_CONFIG_HOME/zsh/.zshrc" autoload -Uz compinit compinit # End of lines added by compinstall ZSH_THEME="agnoster" plugins=( # git # zsh-autosuggestions archlinux emoji zsh-syntax-highlighting ) newtheme(){ sh $XDG_CONFIG_HOME/sway/colors.sh $1 } mountdrives(){ echo "Making directories..." sudo mkdir -p /run/media/linux/6E5273EB5273B685 sudo mkdir /run/media/linux/2E56677A56674227 echo "Mounting drives..." sudo mount -t ntfs3 /dev/sda3 /run/media/linux/6E5273EB5273B685 sudo mount -t ntfs3 /dev/nvme0n1p2 /run/media/linux/2E56677A56674227 echo "Done." } source "$XDG_CONFIG_HOME/zsh/icons" source "$ZSH/oh-my-zsh.sh" #aliased directories alias projects="$HOME/Documents/Projects/" # aliased commands alias py="python3" alias upgrade="sudo aura -Syu && sudo aura -Akuax" alias micon="pactl load-module module-loopback latency_msec=1" alias micoff="pactl unload-module module-loopback" alias vim="nvim" alias ls="lsd" alias grep="rg" alias rm="trash" alias radeontop="radeontop -c" alias speedometer="speedometer -l -r wlo1 -t wlo1 -m $(( 1024 * 1024 * 3 / 2 ))" alias tty-clock="tty-clock -scBxbn" alias auth="eval $(ssh-agent) ssh-add ~/.ssh/ubuntu@vector" alias vector="screen -S vector mosh ubuntu@arrayinamatrix.xyz --ssh='ssh -p 6969'" alias share='f() { curl --progress-bar --upload-file "$1" https://share.arrayinamatrix.xyz/ | tee /dev/null; echo };f' # . torsocks on if [[ -n $(tty | grep tty) ]]; then source ~/.cache/wal/colors-tty.sh unimatrix -w -s 95 fi lfcd() { tmp="$(mktemp)" lfrun -last-dir-path="$tmp" "$@" if [ -f "$tmp" ]; then dir="$(cat "$tmp")" rm -f "$tmp" [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir" fi } bindkey -s '^o' 'lfcd\n' # bun completions [ -s "/home/linux/.bun/_bun" ] && source "/home/linux/.bun/_bun"