dynisland_script_module

Crates.iodynisland_script_module
lib.rsdynisland_script_module
version0.1.2
sourcesrc
created_at2024-08-28 12:46:37.786676
updated_at2024-09-11 14:09:48.32745
descriptionScript module for dynisland
homepage
repositoryhttps://github.com/cr3eperall/dynisland-modules
max_upload_size
id1354616
size30,526
cr3eperall (cr3eperall)

documentation

README

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 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.

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!\"",
        ),
    ]
}
Commit count: 0

cargo fmt