hide entire toolbar unless fn key is hit

Hey!

New to the forum here. I just reinstalled Mojave and forgot how I set up the following:

I disabled everything on touchbar except the esc key. I also had it so i couldn't hit th esc key without holding fn key, as if the entire touchbar is completely off when the fn key is not held down. Is thIs there anyway I can recreate this? I've been searching and racking my brain for a couple hours now with no results. Should be simple fix, right?