Before I begin, I would like to say that I think part of the reasoning for the question is at least, partially flawed.
Video games, movies, TV, etc. have a very low barrier to entry; programming on the other hand can some times be very discouraging, aggravating and time consuming. It is work. Sure, if you can manage to solve a lot of bugs all at once, or lower the start up time for Application X by 15 seconds by taking out a single line of code, it can give a really big adrenaline rush, but most of the time it is much, much more slow going than say, a head shot, or watching Vin Diesel jump out of an exploding submarine and hitch a ride on the back of a whale back to the surface.
Programming is an end goal that you are working towards. Completing that goal with as little code, and as succinctly as possible is the payoff. In video games, you are living in the moment, looking enemies around the next turn, or for more interaction with the users and the environment around you.
Anyway, on with the answer (of sorts).
How do you get yourself to look forward to programming?
I tend to think of people who inspire me and try to figure out how I can build on, and maybe even improve, what they have created, whether it be: a program, a solution to a problem, or even an Operating System.
Knowledge and logic are really wonderful and more importantly, exciting things to gain when improving your programming skills. If you have serious problems getting yourself excited over those types of things, I would have serious concerns for why you are programming in the first place. Or at least why you are programming the types of things that you are. For example: if you are creating a lot of business related code, but it is just incredibly boring, it couldn't hurt to try something vastly different; maybe a 2D side-scrolling shooter, or a 3D modeling software, or a basic imaging program. Maybe start up a small website and mess around with some web apps in a language you've been meaning to try out.
It couldn't hurt to look for some motivational quotes to help inspire you into programming more often. Maybe you could create a simple script to have one pop up each time you open Terminal, that way you would not only be flexing your programming muscles, you may be able to increase productivity as a result.
I would encourage you to look into working on programs that can help you in every day life. Sure, maybe you wont make any money off of them, but if the average application that you create for your freelance work isn't particularly stimulating, this could be something that you could pursue in your down time to help perk up your interests.
Some people may advise you to simply uninstall whatever game you end up wasting a lot of time on, but I think that this is a stupid way of approaching the problem. It is human nature to find a way to keep yourself occupied, and I could just as easily imagine you playing flash games, or Solitare, or reading the newspaper for hours on end, if you had no other way to escape. It is important to have something that you can fall back on if you have been struggling to find a solution for a problem and need to get your mind off the project for a while. The key is moderation.
"So how do I moderate how often I get to play game X, or do this other thing, than?" This is something that really no one but you can answer. You know how good or bad your programming skills are, and how long it typically takes you to solve a problem.
Hope this has helped some.