I understand the frustration that can happen during university. Especially early on. But I would try to continue.
The "theory and boring stuff" intro years will be over soon and then you can pick more interesting specialised subjects hopefully.
If it just doesn't work (lack of motivation does not sound like it) I would try to maybe change the focus somehow adding different courses other teachers and similar.