Reply to topic

How to change KDE colourscsheme from within a script

petrosyan
Registered Member
Posts
1
Karma
0
Hi all,

I want to implement a scheduled colourscheme changer. The idea is to set a kalarm script that edits a file and changes the colourscheme.

For example to automatically change the colourscheme to Breeze dark past 20:00, and to set uit back to Breeze at 19:00.

I tried to find a filethat defines the colourscheme, but it seems near impossible: the settings are duplicated all over the place and I don't know how to make the system refresh without logging out: the whole idea is to do this seamlessly.

Another possibility is to use
Code: Select all
kcmshell5 --args <something something=Breeze Dark> colors
trouble is to pass an argument that tells what to change the colorscheme to - Breeze Dark. Is there any documentation on supported arguments and or functions?

A third possibility is to implement this in the KCM colors itself, problem is I can't seem to find the repository and not everyone might like the change. It would still be a feature - changing colour contrast throughout the day, but you never know.

Last resort is to call
Code: Select all
kcmshell colors
and pass it a number of keypresses that changes the colourscheme. A terrible idea, but it might work for some simple usecases.

Any help would be much appreciated.
User avatar ganders
Registered Member
Posts
1
Karma
0
I use this script for me Plasma 5:
https://unix.stackexchange.com/question ... ell-script

Once I even used this script on the site, where you can get homework assignment help, for the term paper.
But I often use the console to change the color - for me, it's easier and more convenient. How to do it:
https://abdussamad.com/archives/503-Cha ... n-KDE.html
ztara
Registered Member
Posts
1
Karma
0
ganders wrote:I use this script for me Plasma 5:
https://unix.stackexchange.com/question ... ell-script

Once I even used this script on the site, where you can get homework assignment help, for the term paper.
But I often use the console to change the color -Phenq for me, it's easier and more convenient. How to do it:
https://abdussamad.com/archives/503-Cha ... n-KDE.html

thank you this script ...its very help full

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], claydoh, Exabot [Bot], Google [Bot], jackdinn, La Ninje, rolfreiner, slowersu, Sogou [Bot], vinnywright, Yahoo [Bot], Zeznon