- Set the current Process name in Nim, shows up on system monitor with custom name.
- Turn Display Off using Nim, 1 proc, turns off monitor, designed for long running tasks on mobile devices to save battery.
>>> import osutil >>> echo set_process_name("MyAwesomeNimApp") >>> echo set_display_off() (output: "", exitCode: 0)
nimble install osutil
Description: Set the current Process name in Nim, shows up on system monitor with custom name.
If you dont set the process name it will show up as
the filename of the main executable.
For SysAdmins and DevOps is important to quickly identify a particular process on
the system monitor, that can be a GUI or a command like
Giving a proper name to your processes makes your software feel more professional.
Uses a low level call to
libc.so. Only available on Linux.
nameA Name for your Process,
Description: Turn Display Off using Nim, crossplatform, 1 proc, turns off monitor, designed for long running tasks on mobile devices.
tuple[output: TaintedString, exitCode: int].