misc: cleanup

This commit is contained in:
Dylan Araps 2018-06-03 16:11:37 +10:00
parent 21103d9ada
commit ab01e65fad
1 changed files with 13 additions and 18 deletions

View File

@ -1379,10 +1379,8 @@ get_de() {
;; ;;
"FreeMiNT") "FreeMiNT")
get_wm freemint_wm=(/proc/*)
case "${freemint_wm[*]}" in
for files in /proc/*; do
case "$files" in
*thing*) de="Thing" ;; *thing*) de="Thing" ;;
*jinnee*) de="Jinnee" ;; *jinnee*) de="Jinnee" ;;
*tera*) de="Teradesk" ;; *tera*) de="Teradesk" ;;
@ -1390,7 +1388,6 @@ get_de() {
*zdesk*) de="zDesk" ;; *zdesk*) de="zDesk" ;;
*mdesk*) de="mDesk" ;; *mdesk*) de="mDesk" ;;
esac 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")