dotfiles_ewwii/nbcl/panel/panel_section_center.nbcl
candifloss 62a705ee41 Update X desktop info handling
- Update initial value for `xdistate`
- Function for current window name
2026-09-09 12:53:31 +05:30

23 lines
429 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 = xdi.windowname()
}
}
}