1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-02 03:01:04 +02:00

docs: add custom power menu example

This commit is contained in:
Jake Stanger 2022-11-30 22:09:46 +00:00
parent 907a565f3d
commit 1320639d4e
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 233 additions and 3 deletions

View file

@ -60,11 +60,11 @@ let {
{
type = "box"
widgets = [
{ type = "button" class="power-btn" label = "<span font-size='20pt'></span>" on_click = "!shutdown now" }
{ type = "button" class="power-btn" label = "<span font-size='20pt'></span>" on_click = "!reboot" }
{ type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!shutdown now" }
{ type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!reboot" }
]
}
{ type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" }
{ type = "label" name = "uptime" label = "Up: {{30000:uptime -p | cut -d ' ' -f2-}}" }
]
} ]
}