adapted i3 exit script to my needs