From dd5a5f02db05c668693d02433fbf1881fc996a43 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 1 Apr 2016 11:44:20 +1100 Subject: [PATCH] Move OS X detection to the bottom --- neofetch | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/neofetch b/neofetch index 3bd07d3e..bf84e6b1 100755 --- a/neofetch +++ b/neofetch @@ -820,14 +820,6 @@ getwmtheme () { wmtheme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)" wmtheme="${detheme} (${wmtheme})" ;; - 'Quartz Compositor') - wmtheme=$(/usr/libexec/PlistBuddy -c "Print AppleAquaColorVariant" ~/Library/Preferences/.GlobalPreferences.plist) - if [ -z "$wmtheme" ] || [ "$wmtheme" == "1" ]; then - wmtheme="Blue" - else - wmtheme="Graphite" - fi - ;; 'Compiz' | 'Mutter'* | 'GNOME Shell' | 'Gala') if type -p gsettings >/dev/null 2>&1; then @@ -853,6 +845,15 @@ getwmtheme () { wmtheme=${wmtheme%.*} fi ;; + + 'Quartz Compositor') + wmtheme=$(/usr/libexec/PlistBuddy -c "Print AppleAquaColorVariant" ~/Library/Preferences/.GlobalPreferences.plist) + if [ -z "$wmtheme" ] || [ "$wmtheme" == "1" ]; then + wmtheme="Blue" + else + wmtheme="Graphite" + fi + ;; esac wmtheme="${wmtheme//\'}" }