diff --git a/neofetch b/neofetch index baf4b89c..3112bdb5 100755 --- a/neofetch +++ b/neofetch @@ -1324,6 +1324,11 @@ getresolution() { awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')" fi + scale_factor="$(/usr/libexec/PlistBuddy -c "Print DisplayAnyUserSets:0:0:Resolution" /Library/Preferences/com.apple.windowserver.plist)" + + [ "${scale_factor%.*}" == "2" ] && \ + resolution="${resolution// @/@2x @}" + if [ "$refresh_rate" == "off" ]; then resolution="${resolution// @ [0-9][0-9]Hz}" resolution="${resolution// @ [0-9][0-9][0-9]Hz}"