From 1935465ee1c070ae119578298580280ded3a6f60 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 24 Apr 2016 13:50:21 +1000 Subject: [PATCH] Created w3m-img - Guide [WIP] (markdown) --- w3m-img---Guide-[WIP].md | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 w3m-img---Guide-[WIP].md diff --git a/w3m-img---Guide-[WIP].md b/w3m-img---Guide-[WIP].md new file mode 100644 index 0000000..09a495a --- /dev/null +++ b/w3m-img---Guide-[WIP].md @@ -0,0 +1,67 @@ +I get a lot of comments/questions about how to get w3m-img mode working with
+neofetch. This wiki page will guide you through setting up neofetch/w3m-img and
+will try to explain the various quirks of this mode. + + +## Requirements + + +#### Dependencies + +- `w3m-img` + - Image rendering in the terminal. + - This is sometimes bundled together with `w3m`. + +- `imagemagick` + - Generating thumbnails and cropping the images. + + +#### Terminal Emulator + +Image mode requires a terminal emulator that plays nicely with w3m-img and
+supports the following escape sequence. + +- `\033[14t` + - Prints terminal window size in pixels. + - Used to dynamically size the images. + - Used to dynamically pad the text. + +The table below lists my testing of various terminal emulators, what works and
+what doesn't. + +| Terminal Emulator | w3m-img | `\033[14t` | Quirks | +| ----------------- | ------- | ---------- | ------ | +| URxvt | Yes | Yes | Display problems with xft fonts | +| Xterm | Yes | Yes | +| Xfce4-terminal | Yes | Yes | +| Termite | Yes | Yes | +| Terminator | Yes | Yes | Image disappears on window focus and resize | +| st | Yes | No | Image disappears on window focus and resize | +| tilda | No | Yes | + +Note: For image mode to work, both columns need to be `Yes`. + + +## Image source + +Neofetch by default will try to use your current wallpaper as the image. If the
+wallpaper detection fails we fallback to ascii mode, when ths happens you should
+try and launch neofetch with `--image path/to/image`. + +The list below shows the current wallpaper setters we support. + +**Linux / BSD** + +- feh +- nitrogren +- gsettings + +**Mac OS X / Windows** + +- Builtin wallpaper setter + +If your wallpaper setter isn't listed here and there's an easy way to find where
+the current wallpaper is stored, open an issue and I'll gladly add support for +it. + +