scripting help(solved)

Message
Author
User avatar
sunrat
Posts: 636
Joined: Mon Mar 28, 2016 9:54 pm

Re: scripting help(solved)

#11 Post by sunrat »

This is the line I have in Conky to show total downloads and uploads. Replace the interface name with your actual interface and colours to whatever you prefer.

Code: Select all

$alignc${color #2d9dff}Down${color white}${totaldown wlan0} ${color #2d9dff}Up${color white}${totalup wlan0}

TauTsar
Posts: 38
Joined: Thu Jun 21, 2018 4:49 am

Re: scripting help(solved)

#12 Post by TauTsar »

Thank you.
I mixed yours and handy's conky with the one being used by me already to produce this: although the refresh rate on the net-speed isn't nearly real-time.

Code: Select all

# **********************************************************************
# From: TauTsar,
#
# My thanks to:
# Tony George (teejee2008@gmail.com)
# handy, sunrat and kmathern (MX Forums)
# 
# **********************************************************************


background yes
double_buffer yes

alignment top_right

border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

gap_x 60
gap_y 70
net_avg_samples 1
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour 000000
own_window_argb_visual no
own_window_argb_value 0
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 170 0
stippled_borders 0
update_interval 2.0
uppercase no
use_spacer none

show_graph_scale no
show_graph_range no

use_xft yes
xftalpha 0.1
xftfont Droid Sans:size=10
color0 green
color1 33FF33
color2 33FF33
color3 green
TEXT
${color2}CPU ${color0}${alignr}${cpu cpu0}%
${cpubar cpu0 5,}

${color2}RAM ${color0}${alignr}${mem}
${membar 5,}

${color2}USAGE
${color2}Up:   $alignr${color0}${totalup wlan0}
${color1}Down: $alignr${color0}${totaldown wlan0}

${color2}SPEED
${color1}Up:   $alignr${upspeed wlan0}
${color2}Down: $alignr${downspeed wlan0}
netspeedx.png
netspeedc.png
sunrat wrote: Tue Jun 26, 2018 8:32 pm This is the line I have in Conky to show total downloads and uploads. Replace the interface name with your actual interface and colours to whatever you prefer.

Code: Select all

$alignc${color #2d9dff}Down${color white}${totaldown wlan0} ${color #2d9dff}Up${color white}${totalup wlan0}
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “General”