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.
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.
What should I put in the
<command>part?Anything that runs as long as you want the block to be. Usually
sleepis a good one, usesleep infinityif you want the blocker to never go away until thesystemd-inhibitprocess is killed manually.Aaaah, that’s probably what Plasma is doing.
Would yes command work ?
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.