mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
docs(custom): add native examples
This commit is contained in:
parent
46cbaca5e0
commit
ee8873a94a
1 changed files with 12 additions and 0 deletions
|
@ -207,6 +207,7 @@ to help get your head around what's going on:
|
||||||
<button class="power-btn" label="" on_click="!reboot" />
|
<button class="power-btn" label="" on_click="!reboot" />
|
||||||
</box>
|
</box>
|
||||||
<label name="uptime" label="Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" />
|
<label name="uptime" label="Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" />
|
||||||
|
<clock disable_popup="true" />
|
||||||
</box>
|
</box>
|
||||||
</popup>
|
</popup>
|
||||||
</custom>
|
</custom>
|
||||||
|
@ -262,6 +263,10 @@ to help get your head around what's going on:
|
||||||
"label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}",
|
"label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}",
|
||||||
"name": "uptime",
|
"name": "uptime",
|
||||||
"type": "label"
|
"type": "label"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "clock",
|
||||||
|
"disable_popup": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -319,6 +324,10 @@ type = 'button'
|
||||||
label = '''Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}'''
|
label = '''Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}'''
|
||||||
name = 'uptime'
|
name = 'uptime'
|
||||||
type = 'label'
|
type = 'label'
|
||||||
|
|
||||||
|
[[end.popup.widgets]]
|
||||||
|
type = 'clock'
|
||||||
|
disable_popup = true
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -355,6 +364,8 @@ end:
|
||||||
- label: 'Uptime: {{30000:uptime -p | cut -d '' '' -f2-}}'
|
- label: 'Uptime: {{30000:uptime -p | cut -d '' '' -f2-}}'
|
||||||
name: uptime
|
name: uptime
|
||||||
type: label
|
type: label
|
||||||
|
- type: clock
|
||||||
|
disable_popup: true
|
||||||
type: custom
|
type: custom
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -380,6 +391,7 @@ let {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
{ type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" }
|
{ type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" }
|
||||||
|
{ type = "clock" disable_popup = true }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue