You can remember the meaning of 客气 with this easy mnemonic:
A waitress at a pizza joint smiles to be polite to customers (客) all day long and can't wait for her break to get some fresh air (气) outside.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.