split i3 code into two files
split i3 code into two files