I want to run a script when I'm connecting to a specific network, but only when I'm logged in. I know about cuttlefish, but it's not being maintained.
This is not a duplicate of the other question, as I have tried that, but if-up.d works all the time. I don't want that. I want it to run when I'm logged in, and only when I'm logged in.
It doesn't matter if the network is wireless or not, as I'm already parsing iwconfig to figure out what network I'm connected to.