Inspect information about the machine Hammerspoon is running on
Notes:
Signature | hs.host.addresses() -> table |
---|---|
Type | Function |
Description | Gets a list of network addresses for the current machine |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 12 |
Signature | hs.host.cpuUsage([period], [callback]) -> table |
---|---|
Type | Function |
Description | Query CPU usage statistics for a given time interval using hs.host.cpuUsageTicks and return the results as percentages. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/host.lua line 34 |
Signature | hs.host.cpuUsageTicks() -> table |
---|---|
Type | Function |
Description | Returns a table containing the current cpu usage information for the system in |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 193 |
Signature | hs.host.globallyUniqueString() -> string |
---|---|
Type | Function |
Description | Returns a newly generated global unique identifier as a string |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 490 |
Signature | hs.host.gpuVRAM() -> table |
---|---|
Type | Function |
Description | Returns the model and VRAM size for the installed GPUs. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 644 |
Signature | hs.host.idleTime() -> seconds |
---|---|
Type | Function |
Description | Returns the number of seconds the computer has been idle. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 509 |
Signature | hs.host.interfaceStyle() -> string |
---|---|
Type | Function |
Description | Returns the OS X interface style for the current user. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 454 |
Signature | hs.host.localizedName() -> string |
---|---|
Type | Function |
Description | Gets the name of the current machine, as displayed in the Finder sidebar |
Parameters |
|
Returns |
|
Source | extensions/host/libhost.m line 72 |
Signature | hs.host.names() -> table |
---|---|
Type | Function |
Description | Gets a list of network names for the current machine |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 42 |
Signature | hs.host.operatingSystemVersion() -> table |
---|---|
Type | Function |
Description | The operating system version as a table containing the major, minor, and patch numbers. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 342 |
Signature | hs.host.operatingSystemVersionString() -> string |
---|---|
Type | Function |
Description | The operating system version as a human readable string. |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 282 |
Signature | hs.host.thermalState() -> string |
---|---|
Type | Function |
Description | The current thermal state of the computer, as a human readable string |
Parameters |
|
Returns |
|
Source | extensions/host/libhost.m line 300 |
Signature | hs.host.uuid() -> string |
---|---|
Type | Function |
Description | Returns a newly generated UUID as a string |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 471 |
Signature | hs.host.vmStat() -> table |
---|---|
Type | Function |
Description | Returns a table containing virtual memory statistics for the current machine, as well as the page size (in bytes) and physical memory size (in bytes). |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 86 |
Signature | hs.host.volumeInformation([showHidden]) -> table |
---|---|
Type | Function |
Description | Returns a table of information about disk volumes attached to the system |
Parameters |
|
Returns |
|
Notes |
|
Source | extensions/host/libhost.m line 571 |