use pywal to color alacritty and vim

This commit is contained in:
2024-05-15 22:27:50 +02:00
parent ebe7002e78
commit bfda0a9e27
41 changed files with 1532 additions and 658 deletions

5
home/bashrc.d/01_wal Normal file
View File

@@ -0,0 +1,5 @@
#(cat $HOME/.cache/wal/sequences &)
#(source $HOME/.cache/wal/colors-tty.sh &)

View File

@@ -1,2 +1,23 @@
alias r=ranger
alias r=ranger_cd
ranger() {
if [ -z "$RANGER_LEVEL" ]; then
/usr/bin/ranger "$@"
else
exit
fi
}
ranger_cd() {
temp_file="$(mktemp -t "ranger_cd.XXXXXXXXXX")"
ranger --choosedir="$temp_file" -- "${@:-$PWD}"
if chosen_dir="$(cat -- "$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then
cd -- "$chosen_dir"
fi
rm -f -- "$temp_file"
}
if [ "$RANGERCD" ]; then unset RANGERCD && ranger_cd; fi
#$RANGERCD && unset RANGERCD && ranger_cd

8
home/bashrc.d/vim Normal file
View File

@@ -0,0 +1,8 @@
alias v=vim
alias vim=nvim
#alias lvim="NVIM_APPNAME=nvim-lazy nvim"
alias lvim="NVIM_APPNAME=nvim nvim"
alias avim="NVIM_APPNAME=nvim-astro nvim"
alias cvim="NVIM_APPNAME=nvim-chad nvim"