diff --git a/neofetch b/neofetch index d324a03c..359b6898 100755 --- a/neofetch +++ b/neofetch @@ -1262,6 +1262,10 @@ get_resolution() { scale_factor="$(/usr/libexec/PlistBuddy -c "Print DisplayAnyUserSets:0:0:Resolution" /Library/Preferences/com.apple.windowserver.plist)" + # If no refresh rate is empty. + [[ "$resolution" =~ "@ Hz" ]] && \ + resolution="${resolution//@ Hz}" + (("${scale_factor%.*}" == 2)) && \ resolution="${resolution// @/@2x @}"