neofetch: Fix windows resolution. Closes #1297
This commit is contained in:
parent
1588155964
commit
3dd3f7f8e7
1 changed files with 5 additions and 2 deletions
7
neofetch
7
neofetch
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue