| Crates.io | dynisland_script_module |
| lib.rs | dynisland_script_module |
| version | 0.1.2 |
| created_at | 2024-08-28 12:46:37.786676+00 |
| updated_at | 2024-09-11 14:09:48.32745+00 |
| description | Script module for dynisland |
| homepage | |
| repository | https://github.com/cr3eperall/dynisland-modules |
| max_upload_size | |
| id | 1354616 |
| size | 30,526 |
Shows the image or icon from config.minimal_image
The output of the script in config.exec
minimal_image: The image or icon to show in minimal mode. It can be a path ( begins with file://), a url (begins with http:// or https://) or a gtk4 icon name (no prefix, you can see a collection of icons using gtk4-icon-browser).
scrolling: If true, the output of exec will scroll if it's longer than max_width in pixels, otherwise it will be ellipsized if longer than max_width in characters.
max_width: The maximum width of the widget in pixels if scrolling is true or in characters if scrolling is false. You can configure the minimum width in css.
scrolling_speed: The speed of the scrolling in pixels per second.
windows: A map of window names to vector of configuration.windows examplewindows: {
"main_monitor": [ // list of widgets for the window named "main_monitor"
( // all of these except `exec` can be omitted and the default value will be used
exec: "echo \"Hello, World 1!\"", // The script to run and show in compact mode.
minimal_image: "file:///path/to/image.png",
scrolling: true,
max_width: 100,
scrolling_speed: 50,
),
],
"secondary_monitor": [
(
exec: "echo \"Hello, World 2!\"",
),
(
exec: "echo \"Hello, World 3!\"",
),
]
}