From 3dd3f7f8e7c5df1c2cfa4ded1683a0a396873967 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 23 Jan 2020 18:48:52 +0200 Subject: [PATCH] neofetch: Fix windows resolution. Closes #1297 --- neofetch | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index b4e94ebf..0ed2a32c 100755 --- a/neofetch +++ b/neofetch @@ -2783,8 +2783,11 @@ get_resolution() { ;; "Windows") - maparray -t sw < <(wmic path Win32_VideoController get CurrentHorizontalResolution) - maparray -t sh < <(wmic path Win32_VideoController get CurrentVerticalResolution) + IFS=$'\n' read -d "" -ra sw \ + < <(wmic path Win32_VideoController get CurrentHorizontalResolution) + + IFS=$'\n' read -d "" -ra sh \ + < <(wmic path Win32_VideoController get CurrentVerticalResolution) sw=("${sw[@]//CurrentHorizontalResolution}") sh=("${sh[@]//CurrentHorizontalResolution}")