Adjust window-title width

This commit is contained in:
Candifloss 2026-09-08 12:06:58 +05:30
parent 3e782c57cf
commit c386eacde9
2 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# Example config
const panel_height = 27
const panel_width = 1366
const panel_width = 1366
const panel_windowtitle_maxchars = 45

View File

@ -8,7 +8,15 @@ fn panel_center() {
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
})