Slight refactoring of handleEvent()
Added i3 config