I know how to do it in the battery section through the GUI, but I’d like to set it up through a command, for automation purposes, and particularly for KDE Connect commands.

You are viewing a single thread.
View all comments
2 points

There is kde-inhibit --screenSaver <command> provided by KDE.

But these days, I would just recommend everyone to use systemd-inhibit --what=idle --why=<because> --who=<myself> <command> instead. Works across desktops and does the same thing.

permalink
report
reply
2 points

What should I put in the <command> part?

permalink
report
parent
reply
1 point
*

Anything that runs as long as you want the block to be. Usually sleep is a good one, use sleep infinity if you want the blocker to never go away until the systemd-inhibit process is killed manually.

permalink
report
parent
reply
1 point

Would yes command work ?

permalink
report
parent
reply
1 point

Aaaah, that’s probably what Plasma is doing.

permalink
report
parent
reply

KDE

!kde@lemmy.kde.social

Create post

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn’t, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

Community stats

  • 1

    Monthly active users

  • 342

    Posts

  • 522

    Comments