Skip to content
bd-g edited this page Jan 24, 2023 · 6 revisions

The image module displays an image from a path.

Config

Addressed by image

option typeof default description
path string The absolute path to the image
size integer The width/height to render the image
interval integer The interval (in seconds) in which the information gets polled
signal integer The signal number used to update the module. The number is valid between 1 and N, where SIGRTMIN+N = SIGRTMAX.
on-click string Command to execute when clicked on the module.
on-click-middle string Command to execute when you middle clicked on the module using mousewheel.
on-click-right string Command to execute when you right clicked on the module.
on-update string Command to execute when the module is updated.
on-scroll-up string Command to execute when scrolling up on the module.
on-scroll-down string Command to execute when scrolling down on the module.
smooth-scrolling-threshold double Threshold to be used when scrolling.

Examples:

"image#album-art": {
	"path": "/tmp/mpd_art",
	"size": 32,
	"interval": 5,
	"on-click": "mpc toggle"
}

Style

  • #image
Clone this wiki locally