dotfiles_ewwii/nbcl/panel/panel_section_center.nbcl

25 lines
484 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).window_title
})
}
}
}