Magic variables

These are variables that are always there, without you having to import them.

The delay between all the updating variables except EWW_TIME is 2s, for EWW_TIME it is 1s.

EWW_TEMPS

Heat of the components in Celcius

Structure

{ <name>: temperature }

EWW_RAM

Information on ram and swap usage in kB.

Structure

{ total_mem, free_mem, total_swap, free_swap, available_mem, used_mem, used_mem_perc }

EWW_DISK

Information on on all mounted partitions (Might report inaccurately on some filesystems, like btrfs and zfs) Example: {EWW_DISK["/"]}

Structure

{ <mount_point>: { name, total, free, used, used_perc } }

EWW_BATTERY

Battery capacity in procent of the main battery

Structure

{ <name>: { capacity, status } }

EWW_CPU

Information on the CPU cores: frequency and usage (No MacOS support)

Structure

{ cores: [{ core, freq, usage }], avg }

EWW_NET

Bytes up/down on all interfaces

Structure

{ <name>: { up, down } }

EWW_TIME

the current UNIX timestamp

EWW_CONFIG_DIR

Path to the eww configuration of the current process

EWW_CMD

eww command running in the current configuration, useful in event handlers. I.e.: :onclick "${EWW_CMD} update foo=bar"

EWW_EXECUTABLE

Full path of the eww executable