From cb0dae0a2085262bbc179b5ce560c1d2c1b87033 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 8 Jan 2016 20:45:08 +1100 Subject: [PATCH] Added resolution support for Windows --- fetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index de7b9808..9e910225 100755 --- a/fetch +++ b/fetch @@ -443,7 +443,7 @@ getwindowmanager () { ;; "Windows") - windowmanager="DWM" + windowmanager="Explorer" ;; *) @@ -588,6 +588,10 @@ getresolution () { awk '/Resolution:/ {print $2"x"$4" "}') ;; + "Windows") + resolution="$(cmd /c wmic desktopmonitor get screenwidth, screenheight)" + ;; + *) resolution="Unknown" ;;