- Switch from `leftwm-state` to `xdi` - More generic, no more specific to `leftwm`
25 lines
490 B
Plaintext
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
|
|
})
|
|
}
|
|
}
|
|
} |