Move OS X detection to the bottom
This commit is contained in:
parent
47132728da
commit
dd5a5f02db
17
neofetch
17
neofetch
|
@ -820,14 +820,6 @@ getwmtheme () {
|
||||||
wmtheme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)"
|
wmtheme="$(gsettings get org.cinnamon.desktop.wm.preferences theme)"
|
||||||
wmtheme="${detheme} (${wmtheme})"
|
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')
|
'Compiz' | 'Mutter'* | 'GNOME Shell' | 'Gala')
|
||||||
if type -p gsettings >/dev/null 2>&1; then
|
if type -p gsettings >/dev/null 2>&1; then
|
||||||
|
@ -853,6 +845,15 @@ getwmtheme () {
|
||||||
wmtheme=${wmtheme%.*}
|
wmtheme=${wmtheme%.*}
|
||||||
fi
|
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
|
esac
|
||||||
wmtheme="${wmtheme//\'}"
|
wmtheme="${wmtheme//\'}"
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue