Expand description
A custom menu
This block allows you to quickly run a custom shell command. Left-click on this block to activate it, then scroll through configured items. Left-click on the item to run it and optionally confirm your action by left-clicking again. Right-click any time to deactivate this block.
§Configuration
Key | Values | Default |
---|---|---|
text | Text that will be displayed when the block is inactive. | Required |
items | A list of “items”. See examples below. | Required |
§Example
[[block]]
block = "menu"
text = "\uf011"
[[block.items]]
display = " -> Sleep <-"
cmd = "systemctl suspend"
[[block.items]]
display = " -> Power Off <-"
cmd = "poweroff"
confirm_msg = "Are you sure you want to power off?"
[[block.items]]
display = " -> Reboot <-"
cmd = "reboot"
confirm_msg = "Are you sure you want to reboot?"