For me, I started seeing the signs first with the other layoffs happening prior to mine. There were at least 2 that occurred before I got on the chopping block.
In a 1x1 you would hear your manager saying that we just lost a leader in some org who was doing some high visibility work, or that 3 people under XYZ leader have been let go. And you think wow, this is going to be me very soon. Then you get the vibe around isnt vibing. You can actually smell it. Like the others said, meetings are cancelled here and there, every once a while your boss starts getting pretty interested in your work deeply. They start asking how you are doing certain things, what repo where docs are kept. It's as if I was asking someone: "is the whopper at Burger King or McDonald's?" That's how it was for me.
What's heartbreaking is that when I knew a layoff was coming, I was thinking this is my day. I am definitely losing my job today. And it never was, until I was and I had pretty much started to think I was safe. I had completely switched off. So the layoff caught me off guard. I am restarting my life now, and I have been applying all over. We will see what the future holds. Hang on everyonr.