Krolyxon
Commit 42124b3

Branches

Refs →

aurora.configlfscope

9 lines · 182 B · Bourne Again Shell (bash)

1#!/bin/sh
2case "$(file -Lb --mime-type -- "$1")" in
3 image/*)
4 chafa -f sixel -s "$2x$3" --animate off --polite on -t 1 --bg black "$1"
5 ;;
6 text/*)
7 bat "$1"
8 ;;
9esac