πŸ’» Way-Edges

  • 🀷 What is this
    • πŸ“₯ Installation
      • ⌨️ Command line usage
        • βš™οΈ Configuration
          • 🧱 Widgets
            • Button
              • Slider
                • WrapBox
                  • Ring
                    • Text
                      • Tray
                      • Workspace
                      • Text

                        Plain text.

                        This widget can only be as a stand alone widget, it should be contained with in a Box.

                        Text provide one preset time.

                        {
                          "name": "time",
                          "edge": "bottom",
                          "monitor": "HDMI-A-1",
                          "layer": "overlay",
                          "widget": {
                            "type": "wrap-box",
                            "widgets": [
                              {
                                "index": [-1, -1],
                                "widget": {
                                  "type": "text",
                                  "fg_color": "#FFFFFF",
                                  "font_size": 60,
                                  "font_family": "JetBrainsMono Nerd Font",
                                  "preset": {
                                    "type": "time",
                                    "format": "%m-%d\n%H:%M"
                                  }
                                }
                              }
                            ]
                          }
                        }
                        

                        fg_color

                        Color of the text.

                        Support: #rgb/#rrggbb/#rrrgggbbb/rgb(r, g, b)/rgba(r, g, b, a)...
                        For full info, check RGBA

                        Type: string
                        Default: #FFB847

                        font_family

                        Font family of all text within ring widget.

                        Type: null | string
                        Default: null for default font

                        font_size

                        Font size.

                        Type: int
                        Default: 12

                        preset

                        Preset update function of the text: can only be time/custom.

                        time

                        type*

                        const `time`
                        

                        format

                        Time format, please refer to [https://docs.rs/chrono/latest/chrono/naive/struct.NaiveDateTime.html#method.format]

                        Type: string
                        Default: %Y-%m-%d %H:%M:%S

                        time_zone

                        Time zone, please refer to [https://docs.rs/chrono-tz/0.9.0/chrono_tz/enum.Tz.html]

                        Type: null | string
                        Default: null refers Local

                        update_interval

                        u64

                        custom

                        type*

                        const `custom`
                        

                        update_with_interval_ms

                        Update text with command given milliseconds

                        Example: [1000, "echo -n example_text"]

                        Type: [[int, string]...]
                        Default: []

                        "'Star⭐' true as the ten" β€”β€”β€”β€” Someone from tenakth