0

I'm using KDE and I want to change system sleep timeout. It should be a part of a system bootstrap script (i.e. I want to automate it), so I'd like to know how can I manipulate KDE configs from command line.

I've found this question, but the answer only works inside an X session, and I'd like to execute the script over ssh.

I suppose the config files are there somewhere, but I only found screen locking config in .config.

  • 1
    These are regular text files, so any text editor will do (sed from a script, or vim/nano in a terminal). – xenoid Oct 2 '18 at 20:09
  • @xenoid ok, but I have trouble finding appropriate ones. I've updated question. – Jan Warchoł Oct 3 '18 at 12:09
  • I listed 3 in my comment, available in the repos of any distro. – xenoid Oct 3 '18 at 16:32
1

You did not state which version of 'KDE' you are using. User config files have moved around with releases. In earlier releases a lot was in ~/.kde or ~/.kde4 while more recently ~/.config is the standard directory.

On a machine with plasma 5.13 from KDE Neon Power devil uses ~/.config/powermanagementprofilesrc.

A way to find the fitting config file is to put the suspected config directories into a git repo (git init) add everything (git add .) make the commit (git commit) make the change via the gui and then check where and what has changed (git diff). You can remove the git repo by rm -rf .git when you are done.

Also you might want to bookmark https://userbase.kde.org/KDE_System_Administration for help on location and syntax of config files.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.