migrate to stow
This commit is contained in:
3
config/.config/lf/clean.sh
Executable file
3
config/.config/lf/clean.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#! /bin/bash
|
||||
|
||||
kitty +icat --clear --silent --transfer-mode file
|
||||
24
config/.config/lf/lfrc
Normal file
24
config/.config/lf/lfrc
Normal 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
14
config/.config/lf/preview.sh
Executable 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"
|
||||
Reference in New Issue
Block a user