Re: Conky Helps and Stuff
Posted: Tue Jul 03, 2018 5:16 pm
Thank you!!
That is for tomorrow.. there is a horizontal surface calling for me *giggle*
That is for tomorrow.. there is a horizontal surface calling for me *giggle*
Support for MX and antiX Linux distros
http://forum.mxlinux.org/
Thanks for this contribution.
Code: Select all
# Standard antiX .conkyrc file written by Team antiX.
# Feel free to use.
# anticapitalista@riseup.net
# Note: delete the line above to disable automatic scaling with DPI
# on the live system.
# set to yes if you want Conky to be forked in the background
background yes
short_units yes
cpu_avg_samples 1
net_avg_samples 1
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont gentium:size=12
#ftfont DejaVu Sans:size=10
xftfont DejaVu Sans:bold:size=9
#xftfont DejaVu Sans:size=9
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar
# Text alpha when using Xft
xftalpha 1.0
#on_bottom no
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 5 5
maximum_width 180
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
#border_margin 10
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
color2 white
color3 green
color4 yellow
color8 orange
color9 cyan
# Text alignment, other possible values are commented
# alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 30
gap_y 30
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
# Subtract file system buffers from used memory?
no_buffers yes
# if_up_strictness link: up | link | address
if_up_strictness address
# set to yes if you want all text to be in uppercase
uppercase no
# boinc (seti) dir
# seti_dir /opt/seti
## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: $color $acpiacadapter, ${battery_percent BAT1}%
##${color}battery: $color ${battery}
#${color}ACPI Battery: $color$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:$color ${addr wlan0}
#${color}speed: $color ${wireless_bitrate wlan0}
#${color}link strength: $color ${wireless_link_bar 7,50 wlan0}
# stuff after 'TEXT' will be formatted on screen
own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000
TEXT
${color4}${alignc}${font DejaVu Sans:bold:size=12}MX Linux
${color3}${alignc}${font DejaVu Sans:bold:size=14}${time %H:%M}$font
${color8}${alignc}${time %a %d %b}
${color9}${alignc}Uptime: $uptime
${color4}${alignc}$sysname $kernel
#${color3}res: ${alignr}$color9${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
#${color3}dpi: ${alignr}$color9${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
${color3}${alignr}$color8 Used/Total
${color3}mem: ${alignr}$color9${mem}/$color9${memmax}
${color3}swap: ${alignr}$color9${swap}/$color9${swapmax}
${color3}root: ${alignr}$color9${fs_used}/$color9${fs_size}
${color3}cpu freq: $color4${alignr}${freq}Mhz
${color3}cpu use:${alignr}$color4${cpu}%
${color9}${alignc}${cpugraph 20,180}
${color3}disk I/O: ${alignr}$color4${diskio}
${color9}${alignc}${diskiograph 20,180}${if_up eth0}
${color3}eth0 up: ${alignr}$color4${upspeedf eth0}Kbs
${color9}${alignc}${upspeedgraph eth0 20,180}
${color3}eth0 down: ${alignr}$color4${downspeedf eth0}Kbs
${color9}${alignc}${downspeedgraph eth0 20,180}${endif}${if_up eth1}
${color3}eth1 up: ${alignr}$color4${upspeedf eth1}Kbs
${color9}${alignc}${upspeedgraph eth1 20,180}
${color3}eth1 down: ${alignr}$color4${downspeedf eth1}Kbs
${color9}${alignc}${downspeedgraph eth1 20,180}${endif}${if_up wlan0}
${color3}wlan0 up: ${alignr}$color4${upspeedf wlan0}Kbs
${color9}${alignc}${upspeedgraph wlan0 20,180}
${color3}wlan0 down: ${alignr}$color4${downspeedf wlan0}Kbs
${color9}${alignc}${downspeedgraph wlan0 20,180}${endif}${if_up wlan1}
${color3}wlan1 up: ${alignr}$color4${upspeedf wlan1}Kbs
${color9}${alignc}${upspeedgraph wlan1 20,180}
${color3}wlan1 down: ${alignr}$color4${downspeedf wlan1}Kbs
${color9}${alignc}${downspeedgraph wlan1 20,180}${endif}
You're welcome!richb wrote: @male,
You have done a great service introducing and guiding several us through the weather conky's. It has always been a mystery to me. Not only do I now have a nice looking weather conky, but learned a lot along the way. This willingness to help is what strengthens MX Linux and has a lot to do with its popularity.
Code: Select all
${execi 3600 date --date='1 day' '+%a. %e'}\
haha!
Code: Select all
# Standard antiX .conkyrc file written by Team antiX.
# Feel free to use.
# anticapitalista@riseup.net
# Note: delete the line above to disable automatic scaling with DPI
# on the live system.
# set to yes if you want Conky to be forked in the background
background yes
short_units yes
cpu_avg_samples 1
net_avg_samples 1
out_to_console no
# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont gentium:size=12
#ftfont DejaVu Sans:size=10
xftfont DejaVu Sans:bold:size=9
#xftfont DejaVu Sans:size=9
# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar
# Text alpha when using Xft
xftalpha 1.0
#on_bottom no
# mail spool
mail_spool $MAIL
# Update interval in seconds
update_interval 1
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 5 5
maximum_width 180
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
#border_margin 10
# border width
border_width 1
# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white
color2 white
color3 green
color4 yellow
color8 orange
color9 cyan
# Text alignment, other possible values are commented
# alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 30
gap_y 30
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer right
# Subtract file system buffers from used memory?
no_buffers yes
# if_up_strictness link: up | link | address
if_up_strictness address
# set to yes if you want all text to be in uppercase
uppercase no
# boinc (seti) dir
# seti_dir /opt/seti
## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: $color $acpiacadapter, ${battery_percent BAT1}%
##${color}battery: $color ${battery}
#${color}ACPI Battery: $color$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:$color ${addr wlan0}
#${color}speed: $color ${wireless_bitrate wlan0}
#${color}link strength: $color ${wireless_link_bar 7,50 wlan0}
# stuff after 'TEXT' will be formatted on screen
own_window_argb_value 0
own_window_argb_visual no
own_window_colour 000000
TEXT
${color4}${alignc}${font DejaVu Sans:bold:size=12}MX Linux
${color3}${alignc}${font DejaVu Sans:bold:size=14}${time %H:%M}$font
${color8}${alignc}${time %a %d %b}
${color9}${alignc}Uptime: $uptime
${color4}${alignc}$sysname $kernel
#${color3}res: ${alignr}$color9${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
#${color3}dpi: ${alignr}$color9${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
${color3}${alignr}$color8 Used/Total
${color3}mem: ${alignr}$color9${mem}/$color9${memmax}
${color3}swap: ${alignr}$color9${swap}/$color9${swapmax}
${color3}root: ${alignr}$color9${fs_used}/$color9${fs_size}
${color3}cpu freq: $color4${alignr}${freq}Mhz
${color3}cpu0 use: $color4${cpu cpu0}% ${color3}${alignr}temp: $color4${hwmon temp 2}°C
${color9}${alignc}${cpugraph cpu0 20,180}
${color3}cpu1 use: $color4${cpu cpu1}% ${color3}${alignr}temp: $color4${hwmon temp 3}°C
${color9}${alignc}${cpugraph cpu1 20,180}
${color3}disk I/O: ${alignr}$color4${diskio}
${color9}${alignc}${diskiograph 20,180}${if_up eth0}
${color3}eth0 up: ${alignr}$color4${upspeedf eth0}Kbs
${color9}${alignc}${upspeedgraph eth0 20,180}
${color3}eth0 down: ${alignr}$color4${downspeedf eth0}Kbs
${color9}${alignc}${downspeedgraph eth0 20,180}${endif}${if_up eth1}
${color3}eth1 up: ${alignr}$color4${upspeedf eth1}Kbs
${color9}${alignc}${upspeedgraph eth1 20,180}
${color3}eth1 down: ${alignr}$color4${downspeedf eth1}Kbs
${color9}${alignc}${downspeedgraph eth1 20,180}${endif}${if_up wlan0}
${color3}wlan0 up: ${alignr}$color4${upspeedf wlan0}Kbs
${color9}${alignc}${upspeedgraph wlan0 20,180}
${color3}wlan0 down: ${alignr}$color4${downspeedf wlan0}Kbs
${color9}${alignc}${downspeedgraph wlan0 20,180}${endif}${if_up wlan1}
${color3}wlan1 up: ${alignr}$color4${upspeedf wlan1}Kbs
${color9}${alignc}${upspeedgraph wlan1 20,180}
${color3}wlan1 down: ${alignr}$color4${downspeedf wlan1}Kbs
${color9}${alignc}${downspeedgraph wlan1 20,180}${endif}
Code: Select all
conky.config = {
alignment = 'bottom_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'DDDDDD',
default_outline_color = 'white',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
xftalpha = 0.8,
font = 'Monospace:size=8',
gap_x = 5,
gap_y = 50,
minimum_height = 5,
minimum_width = 5,
maximum_width = 500,
net_avg_samples = 2,
no_buffers = false,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
imlib_cache_size =0,
override_utf8_locale = true,
own_window = true,
own_window_class = 'conky-semi',
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
total_run_times = 0,
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
${color Tan1}Uptime ${color}${uptime}${color Tan1}${alignr}TOP PID CPU MEM
${color Tan1}CPU temperature ${color}${exec sensors | grep 'CPU Temperature' | cut -c22-25}C${color}${alignr}${top name 1}${alignr}${color}${top pid 1} ${top cpu 1} ${top mem 1}
${color Tan1}CPU fan speed ${color}${exec sensors | grep 'CPU FAN'| cut -b 20-27} ${color}${alignr}${top name 2}${alignr}${color}${top pid 2} ${top cpu 2} ${top mem 2}
${color Tan1}Core 1 ${color}${cpu cpu1}% ${color}${alignr}${top name 3}${alignr}${color}${top pid 3} ${top cpu 3} ${top mem 3}
${color Tan1}Core 2 ${color}${cpu cpu2}% ${color}${alignr}${top name 4}${alignr}${color}${top pid 4} ${top cpu 4} ${top mem 4}
${color Tan1}Core 3 ${color}${cpu cpu3}% ${color}${alignr}${top name 5}${alignr}${color}${top pid 5} ${top cpu 5} ${top mem 5}
${color Tan1}Core 4 ${color}${cpu cpu4}% ${color}${alignr}${top name 6}${alignr}${color}${top pid 6} ${top cpu 6} ${top mem 6}
${color Tan1}MB temperature ${color}${exec sensors | grep 'MB Temperature' | cut -c22-25}C ${color}${alignr}${top name 7}${alignr}${color}${top pid 7} ${top cpu 7} ${top mem 7}
${color Tan1}Chassis fan speed ${color}${exec sensors | grep 'CHASSIS FAN'| cut -b 20-27} ${color}${alignr}${top name 8}${alignr}${color}${top pid 8} ${top cpu 8} ${top mem 8}
${color Tan1}Ram in use ${color}${mem}/$memmax ${color}${alignr}${top name 9}${alignr}${color}${top pid 9} ${top cpu 9} ${top mem 9}
# calculate down and up speed scale (105*1000000)/8/1024 where 105 is the amount of mbits the eth0 connection has
# calculate down and up speed scale (25*1000000)/8/1024 where 25 is the amount of mbits the wlan0 connection has
${color Tan1}Eth0 down ${color}${downspeedgraph eth0 10,70 00ff00 00ff00 12817KiB} ${downspeed eth0}
${color Tan1}Eth0 up ${color}${upspeedgraph eth0 10,70 ff0000 ff0000 12817KiB} ${color}${upspeed eth0}
${color Tan1}Wlan0 down ${color}${downspeedgraph wlan0 10,70 00ff00 00ff00 3052KiB} ${downspeed wlan0}
${color Tan1}Wlan0 up ${color}${upspeedgraph wlan0 10,70 ff0000 ff0000 3052KiB} ${color}${upspeed wlan0}
${color Tan1}PCI adapter temp ${color}${exec sensors | grep 'temp1' | cut -c16-17}C
${color Tan1}HDD A temperature ${color}${hddtemp /dev/sda}C
${color Tan1}HDD B temperature ${color}${hddtemp /dev/sdb}C
${color Tan1}GeForce GT640-1GD5 ${color}${nvidia temp}C
#${color Tan1}GeForce ram in use ${color}${exec nvidia-smi -q -d MEMORY | grep Used | cut -c39-45}
${color Tan1}GeForce MiB in use ${color}${exec nvidia-smi -q -d memory | grep Used | sed 's:^[^0-9]*\([0-9]*\)[^0-9]*:\1:'}
${font Verdana:size=8}${color Tan1}Omroep Brabant ${color}${rss http://www.omroepbrabant.nl/rss/?feed=west 15 item_titles 3}
${color Tan1}BN DeStem ${color}${rss http://www.bndestem.nl/roosendaal/rss.xml 15 item_titles 3}
#${color Tan1}Nieuws.nl ${color}${rss http://nieuws.nl/feed/ 15 item_titles 3}
${color Tan1}Brabants Dagblad ${color}${rss http://www.bd.nl/brabant/rss.xml 15 item_titles 3}
#${color Tan1}Nu.nl ${color}${rss http://www.nu.nl/rss/algemeen 15 item_titles 3}
#${color Tan1}GeenStijl ${color}${rss https://www.geenstijl.nl/feeds/recent.atom 15 item_titles 3}
#${color Tan1}CNN ${color}${rss http://rss.cnn.com/rss/cnn_latest.rss 15 item_titles 3}
${color}${exec tail -n5 /var/log/syslog | fold -w79}
]]