neofetch: Fix windows resolution. Closes #1297

parent 15881559
......@@ -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}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment