ArcoLinux 19.09 iso has been released

ConkyMatic

A place to share tips, guides, application configurations and scripts about all elements of ArcoLinux, all of your personal configurations to make ArcoLinux awesome
Post Reply
usr/bin/foobar
Crewman
Posts: 24
Joined: Mon Jan 01, 2018 4:54 am
United States of America
ConkyMatic

Post by usr/bin/foobar » Mon Feb 12, 2018 1:29 am

A shell script I wrote that automatically extracts the 16 most common colors in the current wallpaper, generates a .conkyrc file with colors randomly chosen from that palette, and exports a set of color-matched weather icons.

With a single terminal command you can generate a Conky color theme change every time the wallpaper gets changed. And since the colors are randomly chosen (with some logic) you can run the script multiple times with the same wallpaper and get a different result each time.

YouTube Video

GitHub Repo

Image

User avatar
darknetmatrix
Captain
Posts: 316
Joined: Tue Nov 07, 2017 3:47 pm
Contact:
Belgium
Re: ConkyMatic

Post by darknetmatrix » Mon Feb 12, 2018 9:33 am

looks great
linux user # 527315
I never lose. Either I win, or I learn.

Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.

xeoncpu
Crewman
Posts: 66
Joined: Fri Nov 10, 2017 8:29 am
Location: Hungary
Hungary
Re: ConkyMatic

Post by xeoncpu » Sat Feb 24, 2018 8:47 am

Hi,amazing work! But i have a question.How to do this on openbox?
Please help me!

usr/bin/foobar
Crewman
Posts: 24
Joined: Mon Jan 01, 2018 4:54 am
United States of America
Re: ConkyMatic

Post by usr/bin/foobar » Mon Feb 26, 2018 11:31 pm

For some reason I wasn't getting notifications for this thread.

If you look at the README in ConkyMatic github repo you'll see instructions. It's pretty darn simple, assuming you know how to run a shell script. If you don't, then you need to take a step backward and get up to speed on that first.

The only thing that needs to be configured are a couple variables at the top of the script for your weather location.

When I get some time I'll fire up openbox and see if i can make it work on that DE. I don't know how to query openbox to get the path to the current wallpaper. On XFCE there's a built in query that can be run. Not sure if openbox has something similar.

usr/bin/foobar
Crewman
Posts: 24
Joined: Mon Jan 01, 2018 4:54 am
United States of America
Re: ConkyMatic

Post by usr/bin/foobar » Tue Feb 27, 2018 6:36 am

I updated the script to allow the path to the wallpaper to be passed as an argument:

Code: Select all

./conkymatic.sh /path/to/your/wallpaper.jpg
From what I gather, the only way to set a wallpaper in openbox is with a tool like feh. For that reason, it's not quite as simple to gather the path to the current wallpaper in that environment. Passing the path as an argument is an option now, however.

xeoncpu
Crewman
Posts: 66
Joined: Fri Nov 10, 2017 8:29 am
Location: Hungary
Hungary
Re: ConkyMatic

Post by xeoncpu » Tue Feb 27, 2018 8:29 pm

Thank You!

usr/bin/foobar
Crewman
Posts: 24
Joined: Mon Jan 01, 2018 4:54 am
United States of America
Re: ConkyMatic

Post by usr/bin/foobar » Tue Feb 27, 2018 10:38 pm

Turns out it was pretty easy to add feh support.

In the conkymatic.sh file you will now this config option:

Code: Select all

AUTO_PATH_MODE="feh"
The script will then gather the path automatically from the feh config file.


Post Reply

Return to “Configs, Scripts”