Notes on generalized global symmetries in QFT