dotfiles_ewwii/nbcl/panel/panel_section_center.nbcl
candifloss bc3a9611fa Use xdi for X11 WM info
- Switch from `leftwm-state` to `xdi`
- More generic, no more specific to `leftwm`
2026-09-08 15:10:38 +05:30

25 lines
490 B
Plaintext

# Middle part of the top bar
import core.json
fn panel_center() {
Box {
space_evenly = false
spacing = 0
halign = "center"
Label {
widget_name = "active_window_title"
class = "active_window_title"
height = config.panel_height
unindent = true
wrap = false
lines = 1
truncate = true
truncate_left = false
limit_width = config.panel_windowtitle_maxchars
text = global("xdistate").mutate(|val|{
json.parse(val).active_window.name
})
}
}
}