20
Inhibit sleep when running stuff in the terminal. Thoughts?
(discuss.kde.org)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities [email protected]
It can't be the terminal that decides what inhibits and what doesn't. It must be the user or programs themselves.
How would implementing it in the terminal rather than shell look like? As a user choice? I don't see how that's reasonably possible.
Reading the other comments it seems like there's already inhibit commands.
If the shell does not provide a command or alias, or they can't because the inhibit API is system dependent, it's on the user to define. The user could define a
fg
alias or command, fg for foreground, which executes the command with inhibition.