Skip to content

shikhalev/conky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

conky

Some Conky Stuff

Lua Scripts

utils.lua

conky_format()

function conky_format(format, number)

Usage example:

${lua format %3s ${cpu cpu1}}

Micro utils

function round(value)
function trim(value)
function readlink(path)

hwmon.lua

conky_hwmon()

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:

${lua hwmon k10temp temp 1}

conky_hwmon_index()

function conky_hwmon_index(device)

Return index of named device.

Usage example:

${lua hwmon_index k10temp}

apcups.lua

Get data from apcupsd service by apcaccess.

conky_apcups_get()

function conky_apcups_get(hostport, property, update)

Get some property. Set update to true for one (first) property of device.

Usage example:

${lua apcups_get localhost:3551 model true}
${lua apcups_get localhost:3551 bcharge}

conky_apcups_load()

function conky_apcups_load(hostport)

Reload data for device.

Usage example:

${lua apcups_load localhost:3551}${lua apcups_get localhost:3551 model}

Releases

No releases published

Packages

No packages published

Languages