From 4cea604b8617181eeae72cd68f4533e144b6888c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 4 Nov 2016 13:44:37 +1100 Subject: [PATCH] Termfont: Simpler awk commands --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 0a79e337..0fe4e3de 100755 --- a/neofetch +++ b/neofetch @@ -1520,11 +1520,11 @@ gettermfont() { ;; "xfce4-terminal") - termfont="$(awk -F '=' '!/^($|\/\/)/ && /FontName/ {printf $2}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")" + termfont="$(awk -F '=' '/^FontName/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/xfce4/terminal/terminalrc")" ;; "termite") - termfont="$(awk -F '= ' '/^font/ {a=$0} END{print $2}' "${XDG_CONFIG_HOME}/termite/config")" + termfont="$(awk -F '= ' '/^font/ {a=$2} END{print a}' "${XDG_CONFIG_HOME}/termite/config")" ;; "mintty")