Windows: Screen res support
This commit is contained in:
parent
9f1c18e90d
commit
a79e74df1a
4
fetch.sh
4
fetch.sh
|
@ -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"
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue