简体   繁体   中英

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. It looks really awful =(

Screenshot: 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:

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

you just need to modify height value

or another method using 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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