From 1e486850d8237b8299d12820442f904c495e0178 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 25 Jun 2016 10:56:23 +1000 Subject: [PATCH] Shorten refresh rate output --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 4e2c7676..22dd491d 100755 --- a/neofetch +++ b/neofetch @@ -1522,6 +1522,7 @@ getresolution () { "off") resolution="$(xrandr --nograb --current | awk '/\*/ {printf $1 ", "}')" ;; esac resolution="${resolution//\*}" + resolution="${resolution//\.[0-9][0-9]}" elif type -p xdpyinfo >/dev/null 2>&1; then resolution="$(xdpyinfo 2>/dev/null | awk '/dimensions:/ {printf $2}')"