From 3b713ca92f6fec2f2d3a75d49671cef260c3af62 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Tue, 12 Mar 2019 17:32:43 +1100 Subject: [PATCH] WM Theme: update for Mojave --- neofetch | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/neofetch b/neofetch index 19a5f8b2..6e1950f6 100755 --- a/neofetch +++ b/neofetch @@ -1753,15 +1753,23 @@ get_wm_theme() { "Quartz Compositor") global_preferences="${HOME}/Library/Preferences/.GlobalPreferences.plist" wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")" - wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")" + wm_theme_color="$(PlistBuddy -c "Print AppleAccentColor" "$global_preferences")" [[ -z "$wm_theme" ]] && \ wm_theme="Light" - [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)) && \ - wm_theme_color="Blue" + case "$wm_theme_color" in + "-1") wm_theme_color="Graphite" ;; + "0") wm_theme_color="Red" ;; + "1") wm_theme_color="Orange" ;; + "2") wm_theme_color="Yellow" ;; + "3") wm_theme_color="Green" ;; + "5") wm_theme_color="Purple" ;; + "6") wm_theme_color="Pink" ;; + *) wm_theme_color="Blue" ;; + esac - wm_theme="${wm_theme_color:-Graphite} ($wm_theme)" + wm_theme="${wm_theme_color} ($wm_theme)" ;; *"Explorer")