misc: cleanup
This commit is contained in:
parent
21103d9ada
commit
ab01e65fad
1 changed files with 13 additions and 18 deletions
31
neofetch
31
neofetch
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue