1
0
Fork 0
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:
Claire Neveu 2024-04-07 17:23:59 -04:00 committed by Jake Stanger
parent e99a04923d
commit 96e10fe139
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
14 changed files with 1419 additions and 6 deletions

34
test-configs/menu.corn Normal file
View 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" }]
}