swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.95k stars 92 forks source link

Add environment variables: SwiftBar launch time, last sleep time, last wake time #284

Closed melonamin closed 2 years ago

melonamin commented 2 years ago

As discussed in #276

melonamin commented 2 years ago
Variable Value
SWIFTBAR_LAUNCH_TIME SwiftBar launch date and time, ISO8601
OS_LAST_SLEEP_TIME Last OS sleep date and time, ISO8601. Empty if OS didn't sleep since SwiftBar launch.
OS_LAST_WAKE_TIME Last OS wake from sleep date and time, ISO8601. Empty if OS didn't sleep since SwiftBar launch.