[PR] dylanaraps/neofetch#1944 from EriksRemess - Mac identification and updated list of iDevices

Upstream PR: https://github.com/dylanaraps/neofetch/pull/1944
Thanks to @EriksRemess

Co-authored-by: Ēriks Remess <eriks@remess.lv>
This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-08-04 20:56:52 -04:00
commit 32631d9217

37
neofetch Executable file → Normal file
View file

@ -1327,6 +1327,7 @@ get_model() {
fi fi
case $model in case $model in
Mac14,7): "MacBook Pro (13-inch, M2, 2022)" ;;
MacBookPro18,[3-4]): "MacBook Pro (14-inch, 2021)" ;; MacBookPro18,[3-4]): "MacBook Pro (14-inch, 2021)" ;;
MacBookPro18,[1-2]): "MacBook Pro (16-inch, 2021)" ;; MacBookPro18,[1-2]): "MacBook Pro (16-inch, 2021)" ;;
MacBookPro17,1): "MacBook Pro (13-inch, M1, 2020)" ;; MacBookPro17,1): "MacBook Pro (13-inch, M1, 2020)" ;;
@ -1363,6 +1364,7 @@ get_model() {
MacBookPro5,2): "MacBook Pro (17-inch, Mid/Early 2009)" ;; MacBookPro5,2): "MacBook Pro (17-inch, Mid/Early 2009)" ;;
MacBookPro5,1): "MacBook Pro (15-inch, Late 2008)" ;; MacBookPro5,1): "MacBook Pro (15-inch, Late 2008)" ;;
MacBookPro4,1): "MacBook Pro (17/15-inch, Early 2008)" ;; MacBookPro4,1): "MacBook Pro (17/15-inch, Early 2008)" ;;
Mac14,2): "MacBook Air (M2, 2022)" ;;
MacBookAir10,1): "MacBook Air (M1, 2020)" ;; MacBookAir10,1): "MacBook Air (M1, 2020)" ;;
MacBookAir9,1): "MacBook Air (Retina, 13-inch, 2020)" ;; MacBookAir9,1): "MacBook Air (Retina, 13-inch, 2020)" ;;
MacBookAir8,2): "MacBook Air (Retina, 13-inch, 2019)" ;; MacBookAir8,2): "MacBook Air (Retina, 13-inch, 2019)" ;;
@ -1384,6 +1386,41 @@ get_model() {
MacBook7,1): "MacBook (13-inch, Mid 2010)" ;; MacBook7,1): "MacBook (13-inch, Mid 2010)" ;;
MacBook6,1): "MacBook (13-inch, Late 2009)" ;; MacBook6,1): "MacBook (13-inch, Late 2009)" ;;
MacBook5,2): "MacBook (13-inch, Early/Mid 2009)" ;; MacBook5,2): "MacBook (13-inch, Early/Mid 2009)" ;;
Mac13,1): "Mac Studio (2022, Two USB-C front ports)" ;;
Mac13,2): "Mac Studio (2022, Two Thunderbolt 4 front ports)" ;;
Macmini9,1): "Mac mini (M1, 2020)" ;;
Macmini8,1): "Mac mini (2018)" ;;
Macmini7,1): "Mac mini (Mid 2014)" ;;
Macmini6,[1-2]): "Mac mini (Late 2012)" ;;
Macmini5,[1-2]): "Mac mini (Mid 2011)" ;;
Macmini4,1): "Mac mini (Mid 2010)" ;;
Macmini3,1): "Mac mini (Early/Late 2009)" ;;
MacPro7,1): "Mac Pro (2019)" ;;
MacPro6,1): "Mac Pro (Late 2013)" ;;
MacPro5,1): "Mac Pro (Mid 2010 - Mid 2012)" ;;
MacPro4,1): "Mac Pro (Early 2009)" ;;
iMac21,[1-2]): "iMac (24-inch, M1, 2021)" ;;
iMac20,[1-2]): "iMac (Retina 5K, 27-inch, 2020)" ;;
iMac19,[1-2]): "iMac (Retina 4K, 21.5-inch, 2019)" ;;
iMacPro1,1): "iMac Pro (2017)" ;;
iMac18,3): "iMac (Retina 5K, 27-inch, 2017)" ;;
iMac18,2): "iMac (Retina 4K, 21.5-inch, 2017)" ;;
iMac18,1): "iMac (21.5-inch, 2017)" ;;
iMac17,1): "iMac (Retina 5K, 27-inch, Late 2015)" ;;
iMac16,2): "iMac (Retina 4K, 21.5-inch, Late 2015)" ;;
iMac16,1): "iMac (21.5-inch, Late 2015)" ;;
iMac15,1): "iMac (Retina 5K, 27-inch, Late 2014 - Mid 2015)" ;;
iMac14,4): "iMac (21.5-inch, Mid 2014)" ;;
iMac14,2): "iMac (27-inch, Late 2013)" ;;
iMac14,1): "iMac (21.5-inch, Late 2013)" ;;
iMac13,2): "iMac (27-inch, Late 2012)" ;;
iMac13,1): "iMac (21.5-inch, Late 2012)" ;;
iMac12,2): "iMac (27-inch, Mid 2011)" ;;
iMac12,1): "iMac (21.5-inch, Mid 2011)" ;;
iMac11,3): "iMac (27-inch, Mid 2010)" ;;
iMac11,2): "iMac (21.5-inch, Mid 2010)" ;;
iMac10,1): "iMac (27/21.5-inch, Late 2009)" ;;
iMac9,1): "iMac (24/20-inch, Early 2009)" ;;
*): "$model" ;; *): "$model" ;;
esac esac