Added resolution support for Windows

This commit is contained in:
Dylan 2016-01-08 20:45:08 +11:00
parent 69747da81a
commit cb0dae0a20
1 changed files with 5 additions and 1 deletions

6
fetch
View File

@ -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"
;; ;;