migrate to stow

This commit is contained in:
2022-03-20 00:37:41 +03:00
parent 8544e93367
commit 2ef5b95984
41 changed files with 351 additions and 93 deletions

3
config/.config/lf/clean.sh Executable file
View File

@@ -0,0 +1,3 @@
#! /bin/bash
kitty +icat --clear --silent --transfer-mode file

24
config/.config/lf/lfrc Normal file
View File

@@ -0,0 +1,24 @@
### Settings
set info size
set dircounts # Show number of items inside of directory instead of its size
set icons
set incsearch
set number
set relativenumber
set wrapscroll
set previewer ~/.config/lf/preview.sh
set cleaner ~/.config/lf/clean.sh
### Commands
cmd mkdir ${{
mkdir -p "$1"
}}
### Mappings
map <enter> toggle
map <space> toggle
map <delete> delete
map <backspace2> delete
map d delete

14
config/.config/lf/preview.sh Executable file
View File

@@ -0,0 +1,14 @@
#! /bin/bash
file=$1
w=$2
h=$3
x=$4
y=$5
if [[ "$(file -Lb --mime-type "$file")" =~ ^image ]]; then
kitty +icat --silent --transfer-mode file --place "${w}x${h}@${x}x${y}" "$file"
exit 1
fi
pistol "$file"