cocainate
Why This Name?
The program's functionality and name are inspired by macOS's caffeinate
utility that prevents the system from entering sleep mode.
This name is simply a stupid pun, therefore I do not condone and do not promote drug use, for more information: Wikipedia.
Installation (working progress)
Arch Linux Distributions
yay -S cocainate-bin
paru -S cocainate-bin
macOS
brew tap AppleGamer22/cocainate
brew install cocainate
Windows (working progress)
winget install AppleGamer22.cocainate
Other
go install github.com/AppleGamer22/cocainate
Functionality
Global -d
/--duration
Flag
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.
Acceptable Time Units
- nanoseconds:
ns
- microseconds:
us
(or µs
)
- milliseconds:
ms
- seconds:
s
- minutes:
m
- hours:
h
Examples
- 10 hours:
-d 10h
- 1 hour, 10 minutes and 10 seconds:
-d 1h10m10s
- 1 microsecond:
-d 1us
version
Sub-command
-v
/--verbose
Flag
- 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.
Dependencies
Linux
- D-Bus
- One of the following desktop environments:
macOS
Windows