mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 22:31:03 +02:00
feat: add menu
module
Adds a new Menu module which allows users to create XDG or custom menus that open after clicking on a button. Resolves #534 Co-authored-by: Jake Stanger <mail@jstanger.dev>
This commit is contained in:
parent
e99a04923d
commit
96e10fe139
14 changed files with 1419 additions and 6 deletions
34
test-configs/menu.corn
Normal file
34
test-configs/menu.corn
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
icon_theme = "Paper"
|
||||
position = "bottom"
|
||||
start = [
|
||||
{
|
||||
type = "menu"
|
||||
label = null
|
||||
label_icon = "archlinux"
|
||||
label_icon_size = 36
|
||||
height = 500
|
||||
width = 440
|
||||
start = [
|
||||
{
|
||||
type = "custom"
|
||||
label = "Terminal"
|
||||
icon = "kitty"
|
||||
on_click = "kitty"
|
||||
}
|
||||
]
|
||||
end = [
|
||||
{
|
||||
type = "custom"
|
||||
label = "Logout"
|
||||
icon = "logout"
|
||||
on_click = "wlogout"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{ type = "launcher" }
|
||||
]
|
||||
|
||||
end = [ { type = "clock" }]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue