mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Added resolution support for Windows
This commit is contained in:
6
fetch
6
fetch
@@ -443,7 +443,7 @@ getwindowmanager () {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
windowmanager="DWM"
|
windowmanager="Explorer"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
@@ -588,6 +588,10 @@ getresolution () {
|
|||||||
awk '/Resolution:/ {print $2"x"$4" "}')
|
awk '/Resolution:/ {print $2"x"$4" "}')
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"Windows")
|
||||||
|
resolution="$(cmd /c wmic desktopmonitor get screenwidth, screenheight)"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
resolution="Unknown"
|
resolution="Unknown"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user