mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
neofetch: Fix windows issue. Closes #1297
This commit is contained in:
4
neofetch
4
neofetch
@@ -2784,10 +2784,10 @@ get_resolution() {
|
|||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
IFS=$'\n' read -d "" -ra sw \
|
IFS=$'\n' read -d "" -ra sw \
|
||||||
< <(wmic path Win32_VideoController get CurrentHorizontalResolution)
|
<<< "$(wmic path Win32_VideoController get CurrentHorizontalResolution)"
|
||||||
|
|
||||||
IFS=$'\n' read -d "" -ra sh \
|
IFS=$'\n' read -d "" -ra sh \
|
||||||
< <(wmic path Win32_VideoController get CurrentVerticalResolution)
|
<<< "$(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