Hi,
after examining your strace output, I have the following guesses:
1) Please make sure that ~/.tmp actually exists.
2) If it does, please try /home/sasha instead of ~. It may be that filenames
for the ipc-socket are not globbed yet.
3) If you use a path other than the default of /tmp/i3-ipc.sock, you need to
pass it to i3-msg when calling it (parameter -s).
Best regards,
Michael