You are not logged in.

#1 2019-01-04 13:04:38

S7.L
Member
Registered: 2018-09-16
Posts: 338

[Solved] Conky bar

Hi all, can i please ask for a bit of help with this conky im putting together.

So i have it set up ok as a bar at the bottom but if i change the font to anything larger than 10px it just goes off screen and down into a slant.

I am using in font awesome so maybe its this that is causing it but i wouldnt think so?

Im using arch linux with jwm.

Config.

]
conky.config = {
    alignment = 'bl',
    background = false,
    border_width = 0,
    border_inner_margin = 5,
    border_outer_margin = 0,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'white',
    default_shade_color = 'white',
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = false,
    use_xft = true,
    text_buffer_size = 2048,
    xftalpha = 0.5,
    font = 'Roboto:Regular:size=10',
    gap_x = 0,-- l|r
    gap_y = 0,-- u|d
    minimum_width = 1366, minimum_height = 20,
    maximum_width = 1366,
    net_avg_samples = 2,
    double_buffer = true,
    out_to_console = false,
    out_to_ncurses = false,
    out_to_stderr = false,
    out_to_x = true,
    override_utf8_locale = true,
    extra_newline = false,
    own_window = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_transparent = false,
    own_window_argb_visual = true,
    own_window_argb_value = 250,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'left',
    show_graph_scale = false,
    show_graph_range = false,
    pad_percents = 2,
        
}

conky.text = [[
${color #5294E2} | \
${font FontAwesome}  ${font}${color grey} RAM:$color $mem ${color #5294E2} | \
${font FontAwesome}   ${font}${color grey}CPU:$color $cpu% ${color #5294E2} | \
${font FontAwesome}   ${font}${color grey}SWAP:$color $swap ${color #5294E2} | \
${font FontAwesome}   ${font}${color grey}File Sys: / $color${fs_used /}/${fs_size /} ${color #5294E2} | \
${font FontAwesome}   ${font}${color grey}Up:$color ${totalup wlp7s0b1} ${color grey} ${color #5294E2} \
${font FontAwesome}   ${font}${color grey}Down:$color ${totaldown wlp7s0b1} ${color #5294E2} | \
${font FontAwesome}  
]]

scrots, 1st is 10 px and behaves, second is 12 px and misbehaves.

2019-01-04--1546606777_943x92_scrot.png
2019-01-04--1546606833_1096x102_scrot.png

Last edited by S7.L (2019-01-05 11:07:23)

Offline

#2 2019-01-04 14:08:32

damo
....moderator....
Registered: 2015-08-20
Posts: 4,906

Re: [Solved] Conky bar

Maybe reduce the inner margin to compensate?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2019-01-04 16:21:22

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: [Solved] Conky bar

^ no change.

I deleted the awesome fonts and it behaves, must be a setting i am missing.

Offline

#4 2019-01-04 16:32:51

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,020

Re: [Solved] Conky bar

S7.L wrote:

I am using in font awesome so maybe its this that is causing it but i wouldnt think so?

That appears to be your issue. I reproduced your issue with the slanting text for Roboto and Sans fonts at sizes 11, 12, 14. (fluxbox not jwm)

Remove those FontAwseome icons and there is no issue at any font size. You can try a different icon font - I've had pretty good luck with nerd fonts ; mainly ubuntu, monofur, and anonymouspro.


You must unlearn what you have learned.
    -- yoda

Offline

#5 2019-01-04 17:48:25

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,321

Re: [Solved] Conky bar

The font Roboto Regular size=10 and "FontAwesome" render sizes differently.
You will have to use the Vertical Offset command ${voffset } to bring each section into line properly.

Test_FontAwesome.th.jpg

${color 5294E2} | \
${font FontAwesome}  ${font}${color grey} RAM:$color $mem ${color 5294E2} | \
${voffset -3}${font FontAwesome}   ${font}${color grey}CPU:$color $cpu% ${color 5294E2} | \
${voffset -3}${font FontAwesome}   ${font}${color grey}SWAP:$color $swap ${color 5294E2} | \
${voffset -3}${font FontAwesome}   ${font}${color grey}File Sys: / $color${fs_used /}/${fs_size /} ${color 5294E2} | \
${voffset -3}${font FontAwesome}   ${font}${color grey}Up:$color ${totalup wlp7s0b1} ${color grey} ${color 5294E2} \
${voffset -3}${font FontAwesome}   ${font}${color grey}Down:$color ${totaldown wlp7s0b1} ${color 5294E2} | \
${voffset -3}${font FontAwesome}  ${font}${font}

${color 5294E2} | \
${font FontAwesome}  ${font}${color grey} RAM:$color $mem ${color 5294E2} | \
${font FontAwesome}   ${font}${color grey}CPU:$color $cpu% ${color 5294E2} | \
${font FontAwesome}   ${font}${color grey}SWAP:$color $swap ${color 5294E2} | \
${font FontAwesome}   ${font}${color grey}File Sys: / $color${fs_used /}/${fs_size /} ${color 5294E2} | \
${font FontAwesome}   ${font}${color grey}Up:$color ${totalup wlp7s0b1} ${color grey} ${color 5294E2} \
${font FontAwesome}   ${font}${color grey}Down:$color ${totaldown wlp7s0b1} ${color 5294E2} | \
${font FontAwesome}  ${font}${font}

BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#6 2019-01-05 10:52:18

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: [Solved] Conky bar

Thankyou packrat and sector11, conky now behaving with fontawesome with the voffset settings. Must remember this if i ever put the font down to 10 px (now at 12 and rendering readable on my small screen)..as the voffset makes it slant upwards when you go down in px size now.

Last edited by S7.L (2019-01-05 10:52:52)

Offline

#7 2019-01-05 13:39:21

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,321

Re: [Solved] Conky bar

You're welcome S7.L

I bend, fold, and mutilate conkys for fun.  big_smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#8 2019-01-05 16:07:23

S7.L
Member
Registered: 2018-09-16
Posts: 338

Re: [Solved] Conky bar

Sector11 wrote:

You're welcome S7.L

I bend, fold, and mutilate conkys for fun.  big_smile

"Conky Butcher"!

https://www.youtube.com/watch?v=ZuhN1fUCMBM

Offline

#9 2019-01-05 16:15:49

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,321

Re: [Solved] Conky bar

S7.L wrote:
Sector11 wrote:

You're welcome S7.L

I bend, fold, and mutilate conkys for fun.  big_smile

"Conky Butcher"!

https://www.youtube.com/watch?v=ZuhN1fUCMBM

HAHAHAHAHAHAHA - Oh you have no idea do you!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

Board footer

Powered by FluxBB