I'm on Ubuntu 19.04, and I would like to know a good way for inserting macrons, ā/ē/ī/ō/ū, without using the compose key. I'm currently dealing with a bunch of Latin, and these are essential to the spellings of vocabulary. Ideally, what I would like to do is press a and then - quickly together to make ā. If I press the keys together a bit slower then I would get both of the characters next to each other like 'a-'. I wonder how to do this? I am using i3wm, but I would be curious on how to do this in either Gnome or KDE as well. I am currently using the compose key, but this is pretty cumbersome. Thanks!