From 4eb5f01f1f7a11527be56bd8a8afecd31d640b15 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 4 Aug 2023 12:50:12 +0530 Subject: config sync --- config/lf/lfrc | 5 +++-- config/lf/previewer.sh | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'config/lf') diff --git a/config/lf/lfrc b/config/lf/lfrc index 98c495e..671afbc 100644 --- a/config/lf/lfrc +++ b/config/lf/lfrc @@ -54,11 +54,11 @@ cmd unzip_zip ${{ }} cmd unzip_7z ${{ - nix-zsh -p p7zip --run '7z x $f'; + nix-shell -p p7zip --run '7z x $f'; }} cmd unzip_rar ${{ - NIXPKGS_ALLOW_UNFREE=1 nix-zsh -p unrar --run 'unrar x $f'; + NIXPKGS_ALLOW_UNFREE=1 nix-shell -p unrar --run 'unrar x $f'; }} # }}} @@ -99,4 +99,5 @@ map gdv cd ~/dev map gdp cd ~/dump map gp cd ~/Pictures map gmnt cd /run/media/imsohexy +map gdc cd ~/Documents diff --git a/config/lf/previewer.sh b/config/lf/previewer.sh index 05a1f34..981ef55 100755 --- a/config/lf/previewer.sh +++ b/config/lf/previewer.sh @@ -29,7 +29,10 @@ case "$1" in *.[1-8]) man "$1" | col -b ;; # Images - *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) mediainfo "$1"; ;; + *.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) + catimg -w "$((width * 2 * 3))" "$1"; + echo "done" + ;; #*.bmp|*.jpg|*.jpeg|*.png|*.xpm|*.webp) #~/scripts/image.sh draw "$1" "$x" "$y" "$width" "$height"; -- cgit v1.3.1