Commit c2ac041b authored by Dylan's avatar Dylan

Add resolution support to Windows

parent c75163bf
...@@ -1118,6 +1118,14 @@ getresolution () { ...@@ -1118,6 +1118,14 @@ getresolution () {
awk '/Resolution:/ {printf $2"x"$4" "}') awk '/Resolution:/ {printf $2"x"$4" "}')
;; ;;
"Windows")
resolution=$(wmic desktopmonitor get screenwidth, screenheight /value 2>/dev/null)
resolution=${resolution//ScreenWidth'='/ }
resolution=${resolution//ScreenHeight'='/x}
resolution=${resolution//$'\n'/}
resolution=${resolution/ }
;;
"*") "*")
resolution="Unknown" resolution="Unknown"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment