居心 almost always carries negative connotation - it implies hidden, usually evil, intent. The fixed phrase 居心叵测 (jūxīn-pǒcè, "sinister and unfathomable intentions") is its most common form. Don't use it for innocent intentions.
register
The sense 'to keep one's heart at rest' is literary and archaic, found in classical texts rather than modern speech.