LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-23-2009, 07:35 AM   #1
AJones
Member
 
Registered: Feb 2005
Posts: 95

Rep: Reputation: 16
Script to change the Color Schemes in KDE Automatically


Hi:

I am looking for a script to change the KDE Color schemes automatically. Without going to KDE Control center and changing it manually. If there is one please give it to me.

Thanks,

Regards
Alan
 
Old 11-24-2009, 12:17 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by AJones View Post
Hi:

I am looking for a script to change the KDE Color schemes automatically. Without going to KDE Control center and changing it manually. If there is one please give it to me.

Thanks,

Regards
Alan
Change how and when? To what color scheme?
 
Old 11-24-2009, 01:34 AM   #3
AJones
Member
 
Registered: Feb 2005
Posts: 95

Original Poster
Rep: Reputation: 16
Hi:

I have a list of KDE 3.5 color schemes in ~/.kde/share/apps/kdisplay/color-schemes. I just want a script that will rotate these color schemes every day/hour, without me manually going to ControlCenter and choosing different color-schemes and choosing Apply. Can this be done?

Thanks,
AJ
 
Old 11-24-2009, 02:04 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Well, I guess yes, it should be doable in bash with some scripting. It's a matter of locating where that set is configured, and changing it with any other. I've tinkered with this in fvwm and have used it to make fvwm automatically detect the color set of kde apps and theme itself in a similar way.

It's not trivial though, and I don't have any kde3 stuff to check, so I can't help with the scripting.

Another thing that I am not sure about is whether there's a way to make kde apps automatically change the colors on the fly, if not, anything changed outside kde would only affect the apps that you open from that moment.

A way to start would be this:

Code:
grep -i ksrc ~/.kde/*
I think that "ksrc" was the extension that the color files used in kde3, if not, change it accordingly. This will give you the files containing that string, you should be able to locate the one that's responsible for loading the kde color scheme. That's half of the work, the rest is just figuring a sed, awk or whatever statement you prefer to change that file name by something else.

Once you have that you just need to put the pieces together into a loop so it runs once every hour.

Again, I have no idea if the applications will addapt on the fly. I'm more inclined to think that they will not. I have no idea if that's even possible to do from outside kdelibs, and the only way I know to reach the kde3.x apps from command line is via dcop. No idea if it will help in this case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
emacs color schemes Four Linux - Newbie 1 10-19-2006 12:11 PM
emacs color schemes Four Linux - Newbie 2 10-08-2006 02:53 PM
How do I change color bittage level in KDE? banjzooie Linux - Software 1 06-11-2006 03:53 AM
dark color schemes-white text doesnt show up in firefox, etc aw76 Linux - General 5 12-01-2005 10:16 AM
Change KDE desktop font color TheOneAndOnlySM Slackware 5 01-24-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration