-
Notifications
You must be signed in to change notification settings - Fork 0
Functionality
Omri Bornstein edited this page Apr 17, 2022
·
4 revisions
This is an optional flag that accepts a duration string (see Go's time.ParseDuration
for more details). If this flag is not provided, the program will run until manually stopped.
- nanoseconds:
ns
- microseconds:
us
(orµs
) - milliseconds:
ms
- seconds:
s
- minutes:
m
- hours:
h
- 10 hours:
-d 10h
- 1 hour, 10 minutes and 10 seconds:
-d 1h10m10s
- 1 microsecond:
-d 1us
If the -p
flag is provided, the -d
flag's value is used as process polling interval.
This is an optional flag that accepts a process ID (PID). If a valid PID is provided, the program will wait until that process is terminated. The delay between the termination of the provided process and the termination of screensaver inhibitation depends on the -d
flag (which must be provided).
- If this flag is provided, the following details are printed to the screen:
- semantic version number
- commit hash
- Go compiler version
- processor architecture & operating system
- Otherwise, only the semantic version number is printed.