Find all files in the current directory and its subdirectories (max depth of 2) that have not been modified in the last 30 days and change their permissions to 644.
find ~ -maxdepth 2 -type f -mtime +30 -exec chmod 644 {} \;