简体   繁体   English

很棒的wm标签列表大小

[英]awesome wm taglist size

Can't find any manual about changing width of taglist element size. 找不到有关更改标签列表元素大小宽度的任何手册。 Taglist element is wider than icons I had set. Taglist元素比我设置的图标宽。 It looks really awful =( 看起来真的很糟糕=(

Screenshot: http://s12.postimg.org/fkva7xywd/Screenshot_16_02_2014_16_04_07.png 截图: http//s12.postimg.org/fkva7xywd/Screenshot_16_02_2014_16_04_07.png

just tell your imagebox not to be resizable, example: 只是告诉您的图像框不可调整大小,例如:

wibox.widget.imagebox(beautiful.clock, false)

or you can even resize you wibox: 或者甚至可以调整wibox的大小:

mywibox[s] = awful.wibox({ position = "top", screen = s, height = 32 })

you just need to modify height value 您只需要修改高度值

or another method using wibox.layout.constraint: 或使用wibox.layout.constraint的另一种方法:

clock_icon = wibox.widget.imagebox(beautiful.clock, true)
local const = wibox.layout.constraint()                  
const:set_widget(clock_icon)                             
const:set_strategy("exact")                              
const:set_height(16)

then, instead of adding your icon to the layout, just add the constraint. 然后,无需添加图标到布局,只需添加约束即可。

Taglist element consist of icon, text and gap between them. 标签列表元素由图标,文本和它们之间的间隙组成。 This gap defined in awful.widget.common.list_update function in line 在awful.widget.common.list_update函数中定义的此差距行

m = wibox.layout.margin(tb, 4, 4)

Despite you have no text, double gap is still here. 尽管您没有文本,但仍然存在双重差距。 To solve this problem you can copy list_update function to your rc file, fix it and send as fifth(!) argument in awful.widget.taglist. 要解决此问题,您可以将list_update函数复制到您的rc文件中,对其进行修复并在awful.widget.taglist中作为third(!)参数发送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM