Adjust window-title width
This commit is contained in:
parent
3e782c57cf
commit
c386eacde9
@ -2,3 +2,4 @@
|
||||
|
||||
const panel_height = 27
|
||||
const panel_width = 1366
|
||||
const panel_windowtitle_maxchars = 45
|
||||
@ -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
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user