As far as I know, pragmatics is about context-dependent meanings and semantics is about literal i.e. context-independent meanings.
For example, https://en.wiktionary.org/wiki/badass says:
badass (plural badasses)
(US, sometimes considered vulgar, slang, negative connotation) A belligerent or mean person; a person with an unpleasantly extreme appearance, attitudes, or behavior. Don’t mess with that guy, he’s a real badass.
(US, sometimes considered vulgar, youth slang, positive connotation) A person considered impressive due to courage, skill, and/or toughness.
Does the first meaning listed there belong to pragmatics or semantics? (I guess semantics)
Does the second meaning listed there belong to pragmatics or semantics? (I guess pragmatics)
If a meaning is listed among others in a dictionary, is it necessarily or not a literal meaning, and therefore does it necessarily or not belong to semantics? (I guess both no)
Is it correct that
A word usually has one literal meaning, which belongs to semantics.
Other meanings of the word derived from the literal meaning belong to pragmatics?
Thanks.