Windows: Screen res support

This commit is contained in:
dylan araps 2016-01-05 17:17:06 +11:00
parent 9f1c18e90d
commit a79e74df1a
1 changed files with 4 additions and 0 deletions

View File

@ -558,6 +558,10 @@ getresolution () {
resolution=$(system_profiler SPDisplaysDataType | awk '/Resolution:/ {print $2"x"$4" "}') resolution=$(system_profiler SPDisplaysDataType | awk '/Resolution:/ {print $2"x"$4" "}')
;; ;;
"Windows")
resolution=$(cmd /c wmic desktopmonitor get screenheight, screenwidth)
;;
*) *)
resolution="Unknown" resolution="Unknown"
;; ;;