diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:22:03 +0400 |
commit | c419b97b5cc61127ca2b7f9839a588c2ee3e7353 (patch) | |
tree | 623e75923db712e700a447fbb48c0f7105836f8d /config/lf/lfrc | |
parent | 395efb9df45b2000ef6aa11d2c9b7b1904b8c586 (diff) |
directory name changed from dotfiles to config
Diffstat (limited to 'config/lf/lfrc')
-rw-r--r-- | config/lf/lfrc | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc new file mode 100644 index 0000000..ebfffa3 --- /dev/null +++ b/config/lf/lfrc @@ -0,0 +1,44 @@ +# Suleyman's gruvbox themed lf config at "https://github.com/thei0n/slcf" +# Due to the facts that ueberzug is no longer maintained and adds extra complexity it is not included in the config + +# Options +set incsearch +set scrolloff 4 #smooth scrolling + +# Key-maps +map <enter> shell +map m push $mkdir<space> +map t push $touch<space> +map D trash +map gf $lf -remote "send $id select $(fzf --layout=reverse --height=10)" +map x $$f # execute current file (must be executable) + +map zb :{{ set sortby natural; set info size; set preview; set ratios 5:2; }} +map zz :{{ set preview; set ratios 1:2:3; }} + +# Directory change +map gp cd ~/proj +map gt cd ~/testProj +map gc cd ~/.config +map gh cd ~ +map gu cd /usr/local/bin + +# Colors +set cursoractivefmt "\033[0;1;7m" #white +# set cursoractivefmt "\033[32;1;7m" #yellowish green +# set cursoractivefmt "\033[33;1;7m" #orange +# set cursoractivefmt "\033[36;1;7m" #green + +set cursorparentfmt "\033[0;1;7m" +set tagfmt "\033[32;1;7m" +set rulerfmt "\033[32;1;7m" + +set promptfmt "\033[48;1;234m %w/%f" + + +cmd trash !{{ + [ ! -d ~/.trash ] && mkdir -p ~/.trash + set -f + printf "\nItems to be trashed:\n$fx\n\nTrash? [y/N]" && read ans + [ $ans == "y" ] && mv $fx ~/.trash && echo "Trash complete!" || echo "Failed! Use y to trash." +}} |