neofetch: Fix windows resolution. Closes #1297
This commit is contained in:
@@ -2783,8 +2783,11 @@ get_resolution() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
maparray -t sw < <(wmic path Win32_VideoController get CurrentHorizontalResolution)
|
IFS=$'\n' read -d "" -ra sw \
|
||||||
maparray -t sh < <(wmic path Win32_VideoController get CurrentVerticalResolution)
|
< <(wmic path Win32_VideoController get CurrentHorizontalResolution)
|
||||||
|
|
||||||
|
IFS=$'\n' read -d "" -ra sh \
|
||||||
|
< <(wmic path Win32_VideoController get CurrentVerticalResolution)
|
||||||
|
|
||||||
sw=("${sw[@]//CurrentHorizontalResolution}")
|
sw=("${sw[@]//CurrentHorizontalResolution}")
|
||||||
sh=("${sh[@]//CurrentHorizontalResolution}")
|
sh=("${sh[@]//CurrentHorizontalResolution}")
|
||||||
|
|||||||
Reference in New Issue
Block a user