Like the title says, I'd like to slurp in the entire 1920x1080 background wallpaper image into a readable object regardless of what windows, panels, launchers, etc. may currently be on top of it.
Python, because I like it, but I'll take what I can get. I can do C/C++. I'd rather not do Java. Please, not java. This is a small utility, not a weapons-grade application.
Why, you ask?
I want to look at a couple 100 or so random pixels from the image, try to find a common colour, then manipulate the current gtk3 theme's CSS file to change @dark_bg_color to my calculated colour, and then, somehow, reload the theme.
The final result will be that when the wallpaper changes, windows' title bar colours will change to "match".
I'm pretty sure I can do everything except step 1... getting the current wallpaper into a readable object. There are plenty of tutorials on how to change/set the wallpaper, but not much on getting it.
Whoa, you say! You don't KNOW what your desktop wallpaper is? No. I use variety and it's always downloading new wallpapers AND using my personal collection, randomly changing it every 10 minutes or so.