 	  (propertize unf-str
 				   'face '(:background "dark magenta"
 									   :foreground "white"))
-	(propertize unf-str
-				'face 'mode-line-inactive)))
+	unf-str))
 
 (defun tnml/major-mode-module ()
   "Return the current major mode without the '-mode' suffix."

	(tnml/position-module)
	(if (eq tnml-selected-window (selected-window))
		(tnml/system-module)
	  " ")))

(defun tnml/format-string ()
  "Evaluate tnml/format-left and tnml/format-right, and add enough space in between to take up the entire window width."
  (setq avail-chars (window-width))
  (setq left "")
  (setq right "")
  (cl-mapcar '(lambda (l-str r-str)
				(setq new-l-module (eval l-str))
				(setq new-r-module (eval r-str))
				(if (>= (- avail-chars
						   (length new-l-module))
						0)
					(progn (setq left (concat left new-l-module))
						   (setq avail-chars (- avail-chars (length new-l-module)))))
				(if (>= (- avail-chars
						   (length new-r-module))
						0)
					(progn (setq right (concat right new-r-module))
						   (setq avail-chars (- avail-chars (length new-r-module))))))
			 tnml/format-left
			 tnml/format-right)
  (setq tnml/spaces (+ (- (window-width)

  (if (equal (selected-window) tnml-selected-window)
	  (propertize unf-str 'face '(:background "gold3"
											  :foreground "gray18"))
	unf-str))

(defun tnml/system-module ()
  "Return a formatted string of battery percentage and time."
  (propertize (format " %s%%%% %s "
					  (battery-format "%p"
									  (funcall battery-status-function))
					  (format-time-string "%I:%M %p"))
			  'face '(:background "gray87"
					              :foreground "gray20")))

(defvar tnml/format-left
  '((tnml/evil-module)
