mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
neofetch: Fix windows resolution. Closes #1297
This commit is contained in:
7
neofetch
7
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}")
|
||||
|
Reference in New Issue
Block a user