I used a line tool in Krita. You just drag from one point to another and it creates a straight line for you. Ps and Gimp has same tool.
I also use tablet with pen pressure, this allows me to get thicker and thiner lines depending on how hard i push and drag the line.