From 0e448167c02f28603425c6913a33439d5d3a5e05 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 6 Jul 2020 23:54:25 +0300 Subject: [PATCH] resolution: Fix output when monitor is turned off. --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 15d17325..f9ac2306 100755 --- a/neofetch +++ b/neofetch @@ -2905,7 +2905,7 @@ get_resolution() { "off") resolution="$(xrandr --nograb --current |\ awk -F 'connected |\\+|\\(' \ - '/ connected/ && $2 {printf $2 ", "}')" + '/ connected.*[0-9]+x[0-9]+\+/ && $2 {printf $2 ", "}')" resolution="${resolution/primary, }" resolution="${resolution/primary }"