misc: cleanup

This commit is contained in:
Dylan Araps 2018-06-03 16:11:37 +10:00
parent 21103d9ada
commit ab01e65fad

View file

@ -1379,18 +1379,15 @@ get_de() {
;; ;;
"FreeMiNT") "FreeMiNT")
get_wm freemint_wm=(/proc/*)
case "${freemint_wm[*]}" in
for files in /proc/*; do *thing*) de="Thing" ;;
case "$files" in *jinnee*) de="Jinnee" ;;
*thing*) de="Thing" ;; *tera*) de="Teradesk" ;;
*jinnee*) de="Jinnee" ;; *neod*) de="NeoDesk" ;;
*tera*) de="Teradesk" ;; *zdesk*) de="zDesk" ;;
*neod*) de="NeoDesk" ;; *mdesk*) de="mDesk" ;;
*zdesk*) de="zDesk" ;; esac
*mdesk*) de="mDesk" ;;
esac
done
;; ;;
*) *)
@ -1663,15 +1660,13 @@ get_wm_theme() {
wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")" wm_theme="$(PlistBuddy -c "Print AppleInterfaceStyle" "$global_preferences")"
wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")" wm_theme_color="$(PlistBuddy -c "Print AppleAquaColorVariant" "$global_preferences")"
[[ -z "$wm_theme" ]] && wm_theme="Light" [[ -z "$wm_theme" ]] && \
wm_theme="Light"
if [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)); then [[ -z "$wm_theme_color" ]] || ((wm_theme_color == 1)) && \
wm_theme_color="Blue" wm_theme_color="Blue"
else
wm_theme_color="Graphite"
fi
wm_theme="$wm_theme_color ($wm_theme)" wm_theme="${wm_theme_color:-Graphite} ($wm_theme)"
;; ;;
*"Explorer") *"Explorer")