Move windows theme to wmtheme
This commit is contained in:
parent
c8e8cf5f99
commit
4c54da56b7
23
neofetch
23
neofetch
|
@ -894,6 +894,16 @@ getwmtheme () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
'Explorer')
|
||||||
|
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
|
||||||
|
path+="/Windows/CurrentVersion/Themes/CurrentTheme"
|
||||||
|
|
||||||
|
wmtheme="$(head -n1 "$path" 2>/dev/null)"
|
||||||
|
wmtheme="${wmtheme##*\\}"
|
||||||
|
wmtheme="${wmtheme%.*}"
|
||||||
|
wmtheme="${wmtheme^}"
|
||||||
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
wmtheme="${wmtheme//\'}"
|
wmtheme="${wmtheme//\'}"
|
||||||
|
@ -1377,8 +1387,6 @@ getstyle () {
|
||||||
gconf="gtk_theme"
|
gconf="gtk_theme"
|
||||||
xfconf="ThemeName"
|
xfconf="ThemeName"
|
||||||
kde="widgetStyle"
|
kde="widgetStyle"
|
||||||
path="/proc/registry/HKEY_CURRENT_USER/Software/Microsoft"
|
|
||||||
path+="/Windows/CurrentVersion/Themes/CurrentTheme"
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
icons)
|
icons)
|
||||||
|
@ -1517,17 +1525,6 @@ getstyle () {
|
||||||
theme=${theme/ '[GTK3]'}
|
theme=${theme/ '[GTK3]'}
|
||||||
theme=${theme/ '[GTK2/3]'}
|
theme=${theme/ '[GTK2/3]'}
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
case "$os" in
|
|
||||||
"Windows")
|
|
||||||
[ -z "$path" ] && return
|
|
||||||
theme="$(head -n1 "$path" 2>/dev/null)"
|
|
||||||
theme="${theme##*\\}"
|
|
||||||
theme="${theme%.*}"
|
|
||||||
theme="${theme^}"
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue