I pay attention to the following:
Physical Work Environment
I make sure to have a quality drop-down keyboard, a good wireless mouse and a quality chair. If I'm physically uncomfortable I'm not going to be able to focus well. A/C or heat should be comfortable.
Multiple Browser Windows
A technique I developed without being aware of it:
Not browser windows or tabs but actual different browsers, such as Chrome, Firefox, Opera, IE, etc.
I use Opera for personal stuff, personal gemail, bookmarks, logins, etc.
I use Firefox for work, work gmail, work bookmarks, work logins, etc.
Multiple Terminal Windows
Similarly to browser windows, for terminal windows I use split panes to keep stuff in view and in focus rather than requiring an action to reveal it as in tabs.
Multiple Monitors
I find multiple monitors useful and tend to group activities on them, e.g. email and IM on one and development on the others. This way I can glance at communication without losing focus.
Visual Blockers
I am easily distracted in open office environments and so I find a combination of multiple monitors, desk locations, bit of cardboard and other techniques I can block out the view of others.
Audio Blockers
Over the ear headphones work best for me, plus they give the signal of (both ears covered) very busy, (one ear covered) busy but interruptable, (not on), available for all questions.
Cell phone
Mute it or turn it off. Turn off unneeded notifications.
Network
I like a high bandwidth wired connection so I am not being distracted by a slow connection.
Email.
Manage email with filters
IM
Be selective in the channels you use and the conversations you stay in. Go into quiet mode when you need focus.
68Well, get off stackexchange, to start. – Brian Carlton – 2011-06-24T04:27:05.557
You could have two operating systems. One with only work tools (everything distracting is blocked or not installed) while the other operating system has everything else. This is called a dualboot system and you need to choose at system boot what operationg system you want to load. – BlueWizard – 2015-12-25T22:17:08.583
"Getting Things Done" by David Allen has helped me greatly – BlueWizard – 2015-12-25T22:17:37.730
8@BrianCarlton It's not my fault! They gamified StackExchange. Curse Atwood and Spolsky. – Mateen Ulhaq – 2011-12-17T20:39:43.567
1
If your on a mac enviroment, maybe this site can give you some useful pointers : http://trentwalton.com/2011/09/20/unitasking/
– Nils Munch – 2012-01-26T08:38:54.983I get distracted before I ever finish reading this question. – Jeff – 2012-04-19T03:08:21.080
14
I have started using http://www.rescuetime.com/ to identify where my time goes... Useful data, but another distraction.
– itj – 2011-06-23T07:08:21.673I just install rescuetime and Manictime on the same day and have used it for 3-4 days. I am absolutely in love with manictime, it shows you exactly to the second where your time went. Its pretty cool – DMin – 2011-08-02T18:53:22.287