TGViewer
samdark blog ☕️ (Alexander Makarov) samdark blog ☕️ (Alexander Makarov) @samdark_blog · 1.62K subscribers
Post #334 2K
🖼 WezTerm and mc for viewing images

I've recently started using excellent WezTerm. It is fast, feature-rich and runs in Linux, macOS, Windows. After some configuration it looks and runs just fine.

When I was using Windows, my go-to file manager was Total Commander. Under Linux and macOS I've used console mostly but sometimes for sorting photos and freeing up space mc was super-helpful.

WezTerm can display images with its imgcat so I've decided to make these two work together.

mc.ext is what mc uses when opening a file with F3. We forward all png and jpg to mc-img.sh. The shell script takes care of forwarding names to imgcat and adding keyboard navigation to view next/previous and first/last images.

https://github.com/samdark/dotfiles/tree/master/.config/mc

#shell #bash #mc #wezterm
  • 👍 7
  • 🔥 4
More from @samdark_blog
  1. Sep 22, 2026⏩ Re-benchmarked different ways to serve PHP Some time ago I've made some benchmarks to fi…
  2. Sep 9, 2026Пыхник’26 — целая неделя PHP! С 28 сентября по 2 октября пройдёт Пыхник’26 — онлайн-конфер…
  3. Sep 8, 2026My name is Taras Soroka. I’m a CTO, digital transformation consultant, mentor, and the hos…
  4. Sep 8, 2026💬 Bjarne Stroustrup on AI Code will still be written by humans, and they will rely on abs…
  5. Sep 7, 2026🌬 TION MagicAir CO² sensor calibration via USB HID I have a Tion breather and a MagicAir…
  6. Sep 7, 2026🧰 Running Gitea container on older kernels I'm running Gitea at my Synology NAS which has…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →