Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shikhalev/conky
Some Conky Stuff
https://github.com/shikhalev/conky
conky desktop linux sysinfo
Last synced: about 1 month ago
JSON representation
Some Conky Stuff
- Host: GitHub
- URL: https://github.com/shikhalev/conky
- Owner: shikhalev
- License: mit
- Created: 2022-10-22T03:25:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T14:32:46.000Z (about 2 years ago)
- Last Synced: 2023-03-11T11:02:45.598Z (over 1 year ago)
- Topics: conky, desktop, linux, sysinfo
- Language: Lua
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# conky
Some Conky Stuff
## Lua Scripts
### `utils.lua`
#### `conky_format()`
```Lua
function conky_format(format, number)
```Usage example:
```Conky
${lua format %3s ${cpu cpu1}}
```#### Micro utils
```Lua
function round(value)
``````Lua
function trim(value)
``````Lua
function readlink(path)
```### `hwmon.lua`
#### `conky_hwmon()`
```Lua
function conky_hwmon(device, type, index)
```Replacement for `${hwmon ...}` statement with name of device instead number. Also NVME devices named with index: `nvme0`, `nvme1`, etc.
Usage example:
```Conky
${lua hwmon k10temp temp 1}
```#### `conky_hwmon_index()`
```Lua
function conky_hwmon_index(device)
```Return index of named device.
Usage example:
```Conky
${lua hwmon_index k10temp}
```### `apcups.lua`
Get data from `apcupsd` service by `apcaccess`.
#### `conky_apcups_get()`
```Lua
function conky_apcups_get(hostport, property, update)
```Get some property. Set `update` to `true` for one (first) property of device.
Usage example:
```Conky
${lua apcups_get localhost:3551 model true}
${lua apcups_get localhost:3551 bcharge}
```#### `conky_apcups_load()`
```Lua
function conky_apcups_load(hostport)
```Reload data for device.
Usage example:
```Conky
${lua apcups_load localhost:3551}${lua apcups_get localhost:3551 model}
```