That could be a problem, not a solution. It could rekindle your interest so much that you lose it all back, and then overshoot your usual budget before you again cut back.
Boredom can be a big problem, and almost all entertainment is going to cost money somehow. Even walkers have to buy shoes.
Boredom can also lead to aimless wandering, both in the real world and online. You may stumble upon something that interests you, and that is far cheaper than gambling.
There is a fair bit on the internet about most subjects (not all of it factual though), and finding out about things can be interesting.
Making your own website about something that interests you can also absorb time that would otherwise be spent being bored - it can even lead to money.
Many people are merely "users" of computers, but it is possible to teach yourself how to make the computer do what YOU want it to, not what Bill Gates tells it to do. It seems a large number of hobbyists produce pieces of software that they have "knocked up" in their spare time, and some can be pretty useful. Many are given away for free, and some even with the source code so that one can have a tinker around to maybe learn how to do it, or tailor something to your own preference.
When home computers first came out, I was very much a programmer, rather than a user, and all self taught from the instruction manuals. I haven't done much in the way of programming after Windows came out. My major programming experience was with the mainframes of the 1980's and 1990's, skills that are not particularly useful in the Windows era. I do at least know roughly how things might be working "under the bonnet", and that includes casino clients
It's mainly a matter of learning a new language. I have yet to converse with a Windows PC that speaks Fortran and IBM JCL. I can get by with DOS though, and this is roughly the same as the "shell commands" that can be programmed to customise a Windows PC. True DOS died out with Windows 2000, what you get now is a DOS emulator that runs within Windows.
Start playing around with the above, and days can pass, days where you have not spent a single CENT at an online casino