well i thought my opsec was pretty good and i kept moving my coins from address to address just to make sure noone can get my keys
How exactly did you do that? Did you move your coins within your own wallet to a different address within the same wallet?
There was
a transaction to your address 9 blocks before the theft. You've been reusing the same address for many transactions. If your private keys got compromised, that's a long-term risk.
i still hope someone can tell me that this is a flaw in electrum wallet and my coins havent been stolen
It's not a flaw in Electrum. That's a lot of money to lose

It's also a lot of money to keep in a hot wallet

im using ubuntu, how can they install a keylogger without my password?
It's impossible to tell exactly what caused it, there are many different possibilities.
Since there were 9 blocks between your transaction and the theft, is it possible someone gained physical access to your computer?
The 9 blocks between you typing in your password and the theft suggest a manual theft, specialized malware works much faster.