Avatar

jpetso

jpetso@lemmy.kde.social
Joined
1 posts • 4 comments
Direct message

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

Presumably, but it prints “y” to the program output as fast as your CPU allows it, so that’s probably not a very efficient way to do it.

permalink
report
parent
reply

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