mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-20 11:54:23 +02:00
Allows basic modules to be created from a config object, including popup content.
25 lines
No EOL
810 B
Text
25 lines
No EOL
810 B
Text
let {
|
|
$power_menu = {
|
|
type = "custom"
|
|
class = "power-menu"
|
|
|
|
bar = [ { type = "button" name="power-btn" label = "" exec = "popup:toggle" } ]
|
|
|
|
popup = [ {
|
|
type = "box"
|
|
orientation = "vertical"
|
|
widgets = [
|
|
{ type = "label" name = "header" label = "Power menu" }
|
|
{
|
|
type = "box"
|
|
widgets = [
|
|
{ type = "button" class="power-btn" label = "<span font-size='40pt'></span>" exec = "!shutdown now" }
|
|
{ type = "button" class="power-btn" label = "<span font-size='40pt'></span>" exec = "!reboot" }
|
|
]
|
|
}
|
|
]
|
|
} ]
|
|
}
|
|
} in {
|
|
end = [ { type = "clock" } $power_menu ]
|
|
} |