From ec8e4f5d5b22f77018f8344f6fccc04df1bcc218 Mon Sep 17 00:00:00 2001
From: Dylan Araps <dylan.araps@gmail.com>
Date: Mon, 13 Jun 2016 19:08:03 +1000
Subject: [PATCH] Remove image_position

---
 README.md  |  1 -
 neofetch   | 21 ++-------------------
 neofetch.1 |  3 ---
 3 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md
index 60f70861..bb14c43a 100644
--- a/README.md
+++ b/README.md
@@ -424,7 +424,6 @@ alias fetch2="fetch \
                                 /path/to/img, /path/to/dir/, off
     --size 00px | --size 00%    How to size the image.
                                 Possible values: auto, 00px, 00%, none
-    --image_position left/right Where to display the image: (Left/Right)
     --crop_mode mode            Which crop mode to use
                                 Takes the values: normal, fit, fill
     --crop_offset value         Change the crop offset for normal mode.
diff --git a/neofetch b/neofetch
index 2e4e71c8..5b138e6e 100755
--- a/neofetch
+++ b/neofetch
@@ -330,11 +330,6 @@ thumbnail_dir="$HOME/.cache/thumbnails/neofetch"
 # builtin detection doesn't work.
 w3m_img_path="/usr/lib/w3m/w3mimgdisplay"
 
-# Image position
-# Only works with the w3m backend
-# --image_position left/right
-image_position="left"
-
 # Crop mode
 # --crop_mode normal/fit/fill
 crop_mode="normal"
@@ -2335,18 +2330,8 @@ getimage () {
     width="${width:-$image_size}"
     height="${height:-$image_size}"
 
-    # Where to draw the image
-    case "$image_position" in
-        "left")
-            # Padding is half the terminal width + gap
-            padding="\033[$((width / font_width + gap + xoffset/font_width))C"
-        ;;
-
-        "right")
-            padding="\033[0C"
-            xoffset="$((columns * font_width / 2 - gap))"
-        ;;
-    esac
+    # Padding is half the terminal width + gap
+    padding="\033[$((width / font_width + gap + xoffset/font_width))C"
 
     # Make the directory if it doesn't exist
     mkdir -p "$thumbnail_dir"
@@ -3018,7 +3003,6 @@ usage () { cat << EOF
                                 /path/to/img, /path/to/dir/, off
     --size 00px | --size 00%    How to size the image.
                                 Possible values: auto, 00px, 00%, none
-    --image_position left/right Where to display the image: (Left/Right)
     --crop_mode mode            Which crop mode to use
                                 Takes the values: normal, fit, fill
     --crop_offset value         Change the crop offset for normal mode.
@@ -3164,7 +3148,6 @@ while [ "$1" ]; do
         ;;
 
         --size) image_size="$2" ;;
-        --image_position) image_position="$2" ;;
         --crop_mode) crop_mode="$2" ;;
         --crop_offset) crop_offset="$2" ;;
         --xoffset) xoffset="$2" ;;
diff --git a/neofetch.1 b/neofetch.1
index 36f5cc5e..51f273a0 100644
--- a/neofetch.1
+++ b/neofetch.1
@@ -179,9 +179,6 @@ How to size the image.
 .br
 Possible values: auto, 00px, 00%, none
 .TP
-.B \--image_position 'left/right'
-Where to display the image: (Left/Right)
-.TP
 .B \--crop_mode 'mode'
 Which crop mode to use
 .br