From 2770a31ad73d9818e9decd663df2d6c0b8e2642a Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 7 Jan 2016 14:37:24 +1100 Subject: [PATCH] Added getvisualstyle function. (Untested) --- fetch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/fetch b/fetch index 6b3358a1..23f16711 100755 --- a/fetch +++ b/fetch @@ -590,6 +590,25 @@ getcols () { } +# Windows Specific Functions + +getvisualstyle () { + case "$os" in + "Windows XP") + + ;; + + "Windows"*) + visualstyle="grep -F 'CurrentTheme' /proc/registry/HKEY_CURRENT_USER/oftware/Microsoft/Windows/CurrentVersion/Themes" + ;; + + *) + visualstyle="This feature only works on Windows" + ;; + esac +} + + # }}}