added OS X to wmtheme

This commit is contained in:
Andrew Titmuss 2016-04-01 11:41:27 +11:00
parent dda8d6cb20
commit 8d602f1afe
1 changed files with 8 additions and 0 deletions

View File

@ -816,6 +816,14 @@ getwmtheme () {
'2bwm') '2bwm')
;; ;;
'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
} }