Adjust window-title width
This commit is contained in:
parent
3e782c57cf
commit
c386eacde9
@ -1,4 +1,5 @@
|
|||||||
# Example config
|
# Example config
|
||||||
|
|
||||||
const panel_height = 27
|
const panel_height = 27
|
||||||
const panel_width = 1366
|
const panel_width = 1366
|
||||||
|
const panel_windowtitle_maxchars = 45
|
||||||
@ -8,7 +8,15 @@ fn panel_center() {
|
|||||||
halign = "center"
|
halign = "center"
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
widget_name = "active_window_title"
|
||||||
|
class = "active_window_title"
|
||||||
height = config.panel_height
|
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|{
|
text = global("xdistate").mutate(|val|{
|
||||||
json.parse(val).window_title
|
json.parse(val).window_title
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user