3 releases
| 0.1.2 | Sep 11, 2024 |
|---|---|
| 0.1.1 | Sep 6, 2024 |
| 0.1.0 | Aug 28, 2024 |
#1068 in Images
130 downloads per month
Used in dynisland
28KB
649 lines
Script Module
Minimal mode
Shows the image or icon from config.minimal_image
Compact mode
The output of the script in config.exec
Configuration
Default values
-
minimal_image: The image or icon to show in minimal mode. It can be a path ( begins withfile://), a url (begins withhttp://orhttps://) or a gtk4 icon name (no prefix, you can see a collection of icons usinggtk4-icon-browser). -
scrolling: If true, the output ofexecwill scroll if it's longer thanmax_widthin pixels, otherwise it will be ellipsized if longer thanmax_widthin characters. -
max_width: The maximum width of the widget in pixels ifscrollingis true or in characters ifscrollingis false. You can configure the minimum width in css. -
scrolling_speed: The speed of the scrolling in pixels per second.
Multiple widgets definitions
windows: A map of window names to vector of configuration.
windows example
windows: {
"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!\"",
),
]
}
Dependencies
~32–49MB
~821K SLoC