Saturday, December 2, 2023
LF config
set previewer ~/.config/lf/lf_kitty_preview
set cleaner ~/.config/lf/lf_kitty_clean
# Basic Settings
set hidden false
set ignorecase true
set icons true
# Custom Functions
cmd mkdir ${{
printf "Directory Name: "
read ans
mkdir $ans
}}
cmd mkfile ${{
printf "File Name: "
read ans
$EDITOR $ans
}}
cmd setwallpaper ${{
setwallpaper "$f"
}}
# Archive bindings
cmd unarchive ${{
case "$f" in
*.zip) unzip "$f" ;;
*.tar.gz) tar -xzvf "$f" ;;
*.tar.bz2) tar -xjvf "$f" ;;
*.tar) tar -xvf "$f" ;;
*) echo "Unsupported format" ;;
esac
}}
# Trash bindings
cmd trash ${{
files=$(printf "$fx" | tr '\n' ';')
while [ "$files" ]; do
file=${files%%;*}
trash-put "$(basename "$file")"
if [ "$files" = "$file" ]; then
files=''
else
files="${files#*;}"
fi
done
}}
cmd restore_trash ${{
trash-restore
}}
# Bindings
map d
map m
map c $vim "$f"
map au unarchive
map ae $wine "$f"
# Basic Functions
map . set hidden!
map dd trash
map dr restore_trash
map p paste
map x cut
map y copy
map open
map R reload
map mf mkfile
map md mkdir
map bg setwallpaper
map C clear
# Movement
map gD cd ~/Documents
map gd cd ~/Downloads
map gp cd ~/Pictures
map gc cd ~/.config
map gh cd ~/Desktop
map gr cd ~/repos
map gv cd ~/Videos
map gs cd ~/.local/bin
map gt cd ~/.local/share/Trash/files
#file openers
filetype ^pdf,PDF$ zathura
filetype ^epub,EPUB$ calibre ebook-viewer
q
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment