From a79e74df1ab5bdf6c54170164f81368e0419f4bb Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 5 Jan 2016 17:17:06 +1100 Subject: [PATCH] Windows: Screen res support --- fetch.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fetch.sh b/fetch.sh index 7524dff1..a2f2d45d 100755 --- a/fetch.sh +++ b/fetch.sh @@ -558,6 +558,10 @@ getresolution () { resolution=$(system_profiler SPDisplaysDataType | awk '/Resolution:/ {print $2"x"$4" "}') ;; + "Windows") + resolution=$(cmd /c wmic desktopmonitor get screenheight, screenwidth) + ;; + *) resolution="Unknown" ;;