From bde84587b2a408970086f4c708ac9a629abfa554 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sat, 18 Jul 2026 14:27:58 +0530 Subject: feat: switch launcher to dex, add vi-mode and kitty nav, enable ouch unfree Rewrite fzf-launcher to use dex via setsid instead of parsing Exec= lines Add vi-mode (bindkey -v, KEYTIMEOUT=1) to zsh Add Ctrl+click link handling and Ctrl+Shift+h/j/k/l window nav to kitty Switch i3 terminal key from $mod+t to $mod+Return Enable unRAR support in ouch (override enableUnfree) Fix epub cover extraction (decompress full archive, use find) Remove neomutt dd/gT keybindings Fix missing $TITLE quoting in neomutt-sync Add findutils and dex to script deps --- modules/scripts/file-preview.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/scripts/file-preview.sh') diff --git a/modules/scripts/file-preview.sh b/modules/scripts/file-preview.sh index 047252d..7712754 100644 --- a/modules/scripts/file-preview.sh +++ b/modules/scripts/file-preview.sh @@ -93,8 +93,10 @@ case "$MIMETYPE" in application/epub+zip|application/x-mobipocket-ebook) TMP_IMG="$TMP_DIR/epub-${INODE}.png" if [ ! -f "$TMP_IMG" ]; then - ouch decompress "$FILE_PATH" --limit "*/cover*.jpg" --dir "$TMP_DIR" >/dev/null 2>&1 - mv "$TMP_DIR"/cover*.jpg "$TMP_IMG" 2>/dev/null + EPUB_DIR="$TMP_DIR/epub-${INODE}" + ouch decompress --yes --dir "$EPUB_DIR" "$FILE_PATH" >/dev/null 2>&1 + COVER=$(find "$EPUB_DIR" -type f \( -iname 'cover*.jpg' -o -iname 'cover*.jpeg' -o -iname 'cover*.png' \) -print -quit) + [ -n "$COVER" ] && cp "$COVER" "$TMP_IMG" fi [ -s "$TMP_IMG" ] && render_image "$TMP_IMG" ;; -- cgit v1.2.3