Windows: Screen res support
This commit is contained in:
parent
9f1c18e90d
commit
a79e74df1a
1 changed files with 4 additions and 0 deletions
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"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue