Go outside and study. You can study with friends or in a park. If you study indoors you will be in a restricted enviroment which leads to fall in intrest, boredom and then procrastination.
Be active. For this you should do morning walks, exercising, interacting with friends, etc. Activity keeps your mind and body dynamic which basically stops procrastination. An active man would rarely be lazy.
Take the computer and laptops as a bane and stop using them altogether. They detach you from the real world and make you an inactive shell. And Inactivity is the seed of procrastination. A good solution would be to browse the internet and play games on mobile phones initially and slowly get off it as well (This prevents relapses).
So, Refrain from staying in restricted periods for long periods of time (Eating, Sleeping, Bathing and daily activities are exceptions), interact with friends and other people in real time, adopt a healthy and active lifestyle and see the internet and the computer as a bane. Do this and Procrastination will be taking an extended vacation from your being.

kun:
A change in lifestyle comes first, then a change in mindset should follow (The advice on how to change your mindset has been given brilliantly already by the above people). If you change your mindset and not your lifestyle, then your mind will cave in and you will be back to square one.