Conky Helps and Stuff

Message
Author
User avatar
Jerry3904
Administrator
Posts: 21944
Joined: Wed Jul 19, 2006 6:13 am

Re: Fixed CPU temps & Net Speed KoO-MX Conky

#271 Post by Jerry3904 »

KoO wrote: Mon Dec 31, 2018 11:21 pm I have seen from some Nice screenshots of MX-18 that the CPU temps are not reading Properly and the net speed is fixed to Kbs this code should fix the issues..
Their are up to 4 cores with this script if you only two cores just comment out core 2 and 3 with this. #

Code: Select all

<snip>
Maybe better would be this (mx instead of antix version info)?

Code: Select all

OS $alignr${exec cat 30 /etc/mx-version}
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

clicktician
Posts: 136
Joined: Sat May 02, 2015 4:35 pm

Re: Conky Helps and Stuff

#272 Post by clicktician »

asqwerth wrote: Wed Jan 02, 2019 9:24 am Sigh. Just a rant that NOAA has discontinued its service at the end of 2018. I knew it was coming, but it's a bit of a pain to switch my conkies to 1_accuweather_RSS just to display the current temperature, and in the end I just let it display the whole current forecast. When I have more time I'll have to see if I can understand the awk and print $NF thing to get just the temperature showing.

In any case, I took the opportunity to finally use the 1_accuweather_RSS script for the first time. My conkies using the older 1d_accuweather_rss script are still working so I never bothered to use the newer script until now.
I know a little about awk and lua. (I apologize if I'm oversimplifying). This awk snippet will scrape the current temp off NOAAs https site. You need to furnish your latitude and longitude in the URL. It will return the temp in Fahrenheit. Here's an example:

Code: Select all

wget -q -O - 'https://forecast.weather.gov/MapClick.php?lat=38.48243990000003&lon=-90.38798999999995' | awk '/<p class=\"myforecast-current-lrg\">/{split($0,d,"\">")split(d[2],t,"&");print t[1]}' -
You can get it to build a URL for your location by starting at https://www.weather.gov/ in a browser and then keying in your zip code for the location. It will then redirect you and you'll see your lat and lon in the URL bar.
Son, someday all this will belong to your ex wife.

User avatar
asqwerth
Developer
Posts: 7231
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#273 Post by asqwerth »

clicktician wrote: Wed Jan 02, 2019 2:24 pm
I know a little about awk and lua. (I apologize if I'm oversimplifying). This awk snippet will scrape the current temp off NOAAs https site. You need to furnish your latitude and longitude in the URL. It will return the temp in Fahrenheit. Here's an example:

Code: Select all

wget -q -O - 'https://forecast.weather.gov/MapClick.php?lat=38.48243990000003&lon=-90.38798999999995' | awk '/<p class=\"myforecast-current-lrg\">/{split($0,d,"\">")split(d[2],t,"&");print t[1]}' -
You can get it to build a URL for your location by starting at https://www.weather.gov/ in a browser and then keying in your zip code for the location. It will then redirect you and you'll see your lat and lon in the URL bar.
Thanks, clicktician, but it seems to be limited to only US locations now. I'm not in the US. Clicking on "International forecasts" or "international weather" sends me to an external link:

https://worldweather.wmo.int/en/home.html

Any idea how to work awk magic with this site?

If not, I'll stick with accuweather and openweathermap.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

clicktician
Posts: 136
Joined: Sat May 02, 2015 4:35 pm

Re: Conky Helps and Stuff

#274 Post by clicktician »

asqwerth wrote: Thu Jan 03, 2019 12:20 am
Thanks, clicktician, but it seems to be limited to only US locations now. I'm not in the US. Clicking on "International forecasts" or "international weather" sends me to an external link:

https://worldweather.wmo.int/en/home.html
Ooops, sorry. That site seemed a bit limited. I think you'd have better luck with Weather Underground.
This snippet will retrieve the current temp in Brazilia, Brazil from Weather Underground.

Code: Select all

wget -q -O - 'https://www.wunderground.com/weather/br/brasilia' | awk '/ class=\"hi-lo\"><span/{split($0,d,"class=\"hi\">")split(d[2],t,"<");print t[1]}' -
Again, you can go here and type your city into the Search box to get a good URL.
https://www.wunderground.com/weather/br/brasilia
Son, someday all this will belong to your ex wife.

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#275 Post by smilliken »

Code: Select all

[img]https://i.imgur.com/Cl3K3wY.png[/img]
Where in this thread is the script for this conky? This looks awesome.

Thanks in advance,

Scott
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
smilliken
Posts: 206
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky Helps and Stuff

#276 Post by smilliken »

Code: Select all

[img]https://i.imgur.com/Cl3K3wY.png[/img]
Where in this thread can I find the script for this conky? This looks awesome.

Thanks in advance,

Scott
Last edited by smilliken on Fri Jan 04, 2019 11:12 am, edited 1 time in total.
There is no "Ctrl+Z" in life!
Asus X570, Rysen 3600, 32 GB RAM MX-21
Acer 7551G MX-21 & Win 10
Asus i5, 16 GB RAM MX-21 & Win 10
Brother DCP-7065DN/HL-L3270CDW
Linux User# 4523410

User avatar
asqwerth
Developer
Posts: 7231
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#277 Post by asqwerth »

smilliken wrote: Thu Jan 03, 2019 11:03 pm

Code: Select all

[img]https://i.imgur.com/Cl3K3wY.png[/img]
Where in this thread is the script for this conky? This looks awesome.

Thanks in advance,

Scott
YOu don't need the "code" BBcode bookending the "img" BBcode.

If you are referring to the weather conky at the top, it's my slightly-tweaked adaptation of male's conky created for Eadwine Rose.

I can only get to the conky file when I get home late tonight.

Unless male can send you his conky config before I get home....
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

Re: Conky Helps and Stuff

#278 Post by KoO »

I have rewritten both MX-KoO and my Old Tower conkys...Both were edited running conky 1.10
The original MX-KoO was a mess of code to say the lease.

(Just one thing I would like to have either Ethernet or Wifi displaying which one is being used at the time but not both...just can't the get ( if ) (end) (ifconfig) commands worked out.Any help with this would be welcome..)

Conky MX-KoO is for 1.9 can also write in 1.10 if needed
Image

Code: Select all

background no
use_xft yes
font Terminus:size=8
xftalpha 0.5
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes

maximum_width 360
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 40
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer no
 
own_window_argb_value 0
own_window_colour 000000
minimum_size 0 0

color0 dodgerblue3
color1 EC0100
color2 E9E101
color3 18FF00
color4 66aaff

TEXT

${alignc}${font Open Sans:size=15}MX Linux 18
${color0}${font Open Sans:Bold:size=10}DATE ${color1}${hr 2}${font}${color}
${alignc}${font Open Sans:size=10}${time %A}, ${time %d %B %Y    %l:%M %P}
# SYSTEM
${font Open Sans:Bold:size=10}${color0}SYSTEM ${color1}${hr 2}${font}${color}
Kernel$alignr$sysname $kernel 
OS $alignr${exec cat 30 /etc/mx-version}
Uptime $alignr $uptime

# CPU
${voffset -8}${font Open Sans:Bold:size=10}${color0}CPU ${color1}${hr 2}${font}${color}
${alignc}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -n 1p | sed -e  's/model name.*: //'}
Core 0  ${color3}${freq 1}mhz  ${execi 5 /usr/bin/sensors | grep Core\ 0| paste -s | cut -d+ -f2 | cut -c1-7}   ${cpu cpu0}% ${color2}${cpubar cpu0}
${color}Core 1  ${color3}${freq 2}mhz  ${execi 5 /usr/bin/sensors | grep Core\ 1| paste -s | cut -d+ -f2 | cut -c1-7}   ${cpu cpu1}% ${color2}${cpubar cpu1}
${color}Core 2  ${color3}${freq 3}mhz  ${execi 5 /usr/bin/sensors | grep Core\ 2| paste -s | cut -d+ -f2 | cut -c1-7}   ${cpu cpu2}% ${color2}${cpubar cpu2}
${color}Core 3  ${color3}${freq 4}mhz  ${execi 5 /usr/bin/sensors | grep Core\ 3| paste -s | cut -d+ -f2 | cut -c1-7}   ${cpu cpu3}% ${color2}${cpubar cpu3}${color}

${color}${voffset -10}------------------------------------------${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -2}--------${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -2}--
${top name 1}${alignr}${top cpu 1} %
${voffset -13}${alignr}${offset -60}${top mem 1} %
${top name 2}${alignr}${top cpu 2} %
${voffset -13}${alignr}${offset -60}${top mem 2} %
${top name 3}${alignr}${top cpu 3} %
${voffset -13}${alignr}${offset -60}${top mem 3} %
${top name 4}${alignr}${top cpu 4} %
${voffset -13}${alignr}${offset -60}${top mem 4} %

# MEMORY
${font Open Sans:Bold:size=10}${color0}MEMORY ${color1}${hr 2}
${color2}${membar 6} 
${color}${font Open Sans:bold:size=8.5}Used:${alignr}${font} $mem of $memmax
${font Open Sans:bold:size=8.5}Free:$alignr$font $memeasyfree
${font Open Sans:bold:size=8.5}Buffers / Cached:$alignr$font$buffers / $cached

${voffset -10}------------------------------------------${font Open Sans:Bold:size=10}${color0}${voffset -2}RAM${color}${font}${voffset -2}--------${font Open Sans:Bold:size=10}${color0}${voffset -2}CPU${color}${font}${voffset -2}--
${top_mem name 1}${alignr}${top_mem cpu 1} %
${voffset -13}${alignr}${offset -60}${top_mem mem 1} %
${top_mem name 2}${alignr}${top_mem cpu 2} %
${voffset -13}${alignr}${offset -60}${top_mem mem 2} %
${top_mem name 3}${alignr}${top_mem cpu 3} %
${voffset -13}${alignr}${offset -60}${top_mem mem 3} %
${top_mem name 4}${alignr}${top_mem cpu 4} %
${voffset -13}${alignr}${offset -60}${top_mem mem 4} %

#GPU
${font Open Sans:Bold:size=10}${color0}GPU ${color1}${hr 2}${font}${color}
GTX 970  ${alignr}${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t}°C    ${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz 

# NETWORK
${font Open Sans:Bold:size=10}${color0}NETWORK ${color1}${hr 2}
${color}${font Open Sans:bold:size=8.5}Ethernet ${font}${alignr}${addr eth0}
↑ ${upspeed eth0}  ${alignr} ${totalup eth0}
${voffset -14}${alignc}${upspeedgraph eth0 10,120  ff0000 0000ff}
↓ ${downspeed eth0}  $alignr ${totaldown eth0}
${voffset -14}${alignc}${downspeedgraph eth0 10,120  ff0000 0000ff}

${font Open Sans:bold:size=10}${color0}WiFi $font${wireless_bitrate wlan0} ${color}${font}${alignr}${addr wlan0}
${color2}${wireless_link_bar 6 wlan0} ${color}
↑ ${upspeed wlan0}  $alignr ${totalup wlan0}
${voffset -14}$alignc${upspeedgraph wlan0 10,120 ff0000 0000ff}
↓ ${downspeed wlan0}  $alignr ${totaldown wlan0}
${voffset -14}$alignc${downspeedgraph wlan0 10,120 ff0000 0000ff}

# HDD
${voffset -8}${font Open Sans:Bold:size=10}${color0}DISKS ${color1}${hr 2}${font}
${color2}${fs_bar /}${color}
/  ${fs_used_perc /}%  ${fs_used /} / ${fs_size /}   W:${diskio_write /dev/sda}      R:${diskio_read /dev/sda}  

${font Open Sans:Bold:size=10}${color0}Temps & Fans ${color1}${hr 2}${font}${color}

HDD Temps ${alignc}${color3}SDA: ${exec hddtemp /dev/sda -n --unit=C}° SDB: ${exec hddtemp /dev/sdb -n --unit=C}°${color} 
Fans ${alignc}${color3}${hwmon 3 fan 1} RPM ${hwmon 3 fan 1} RPM ${hwmon 3 fan 1} RPM

${color1}${hr 1}
Conky Tower is for 1.10 can also write in 1.19 if needed.
Image

Code: Select all

conky.config = {
	background = false,
	use_xft = true,
	font = 'Noto Sans:size=9',
	xftalpha = 0.4,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
    own_window_class = 'Conky',
	own_window_type = 'desktop',
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	double_buffer = true,
    maximum_width = 350,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'FFFFFF',
	default_shade_color = 'FF0000',
	default_outline_color = '66CC00',
	alignment = 'top_right',
	gap_x = 60,
    gap_y = 25,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	override_utf8_locale = true,
	use_spacer = 'none',
    own_window_colour = '000000',
	minimum_width = 290, minimum_height = 0,
};

conky.text = [[
${alignc}${font Open Sans:size=10}${time %A}, ${time %d %B %Y    %l:%M %P}

# SYSTEM
${alignc}${voffset -8}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} SYSTEM ${color} ~~~ \\\${font}
${alignc}$sysname $kernel $alignc $machine
${alignc}Uptime : $uptime

# CPU
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} CPU ${color} ~~~ \\\${font}
${alignc}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -n 1p | sed -e  's/model name.*: //'}${font}
${alignc}Core 0  ${color #F0FF00}${cpubar cpu1 4,40}   ${color}${cpu cpu1}%   ${freq 1}mhz ${color #F0FF00} ${execi 5 /usr/bin/sensors | grep Core\ 0| paste -s | cut -d+ -f2 | cut -c1-7}${color} 
${alignc}Core 1  ${color #F0FF00}${cpubar cpu2 4,40}   ${color}${cpu cpu2}%   ${freq 2}mhz ${color #F0FF00} ${execi 5 /usr/bin/sensors | grep Core\ 1| paste -s | cut -d+ -f2 | cut -c1-7}${color}
${alignc}Core 2  ${color #F0FF00}${cpubar cpu3 4,40}   ${color}${cpu cpu3}%   ${freq 3}mhz ${color #F0FF00} ${execi 5 /usr/bin/sensors | grep Core\ 2| paste -s | cut -d+ -f2 | cut -c1-7}${color}
${alignc}Core 3  ${color #F0FF00}${cpubar cpu4 4,40}   ${color}${cpu cpu4}%   ${freq 4}mhz ${color #F0FF00} ${execi 5 /usr/bin/sensors | grep Core\ 3| paste -s | cut -d+ -f2 | cut -c1-7}${color}
${alignc}${top cpu 1} %${color #00FF00} ~/ ${color}${top name 1}${alignc}${color #00FF00}\~${color}${top mem 1} %
${alignc}${top cpu 2} %${color #00FF00} ~/ ${color}${top name 2}${alignc}${color #00FF00}\~${color}${top mem 2} %
${alignc}${top cpu 3} %${color #00FF00} ~/ ${color}${top name 3}${alignc}${color #00FF00}\~${color}${top mem 3} %
${alignc}${top cpu 4} %${color #00FF00} ~/ ${color}${top name 4}${alignc}${color #00FF00}\~${color}${top mem 4} %

# MEMORY
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} RAM ${color} ~~~ \\\${font}
${alignc}Used : $mem of $memmax $memperc %
${alignc}Free : $memeasyfree
${alignc}Buffers / Cached:$font $buffers / $cached
${alignc}${top_mem name 1}${top_mem mem 1} %
${alignc}${top_mem name 2}${top_mem mem 2} %
${alignc}${top_mem name 3}${top_mem mem 3} %
${alignc}${top_mem name 4}${top_mem mem 4} %

# DISKS
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} DISKS ${color} ~~~ \\\${font}
${alignc}SDA : ${color #F0FF00}${exec hddtemp /dev/sda -n --unit=C}° ${color} SDB : ${color #F0FF00}${exec hddtemp /dev/sdb -n --unit=C}°${font}${color} 
${alignc}ROOT : ${fs_used /} / ${fs_size /} ${fs_type /}
${alignc}${color #F0FF00}${fs_bar 4,100}  ${fs_used_perc /}%${color}
${alignc}write : ${diskio_write /dev/sda}${color}${alignc -20} read: ${diskio_read /dev/sda}

# GPU
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} GPU ${color} ~~~ \\\${font}
${alignc}${font Open Sans:Bold:size=8}${color FF0000}MSI GTX 970 4GB ${font}${color}
${alignc}Fan speed : ${exec nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${alignc}Temp : ${color #F0FF00}${exec nvidia-settings -q [thermalsensor:0]/ThermalSensorReading -t} °C ${color}
${alignc}Clock : ${exec nvidia-settings -q [gpu:0]/GPUCurrentClockFreqs -t} MHz
${alignc}Memory : ${exec nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB

# FAN SPEEDS
${alignc}${font Open Sans :Bold:size=10}${color}/// ~~~ ${color #0066CC} FANS RPM ${color} ~~~ \\\${font}
${alignc}${color}RaD-Fan : ${color #F0FF00}${hwmon 3 fan 1} RPM
${alignc}${color}PumP : ${color #F0FF00}${hwmon 3 fan 2} RPM
${alignc}${color}RaD-Fan : ${color #F0FF00}${hwmon 3 fan 3} RPM

# NETWORK
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} NETWORK ${color} ~~~ \\\${font}

${alignc}Ethernet ${addr eth0}
${alignc} ▲${upspeed eth0} ${upspeedgraph eth0 10,50  ffff00 00ff00} ${totalup eth0}
${alignc} ▼${downspeed eth0} ${downspeedgraph eth0 10,50  ffff00 00ff00} ${totaldown eth0}
${alignc}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan0} ${addr wlan0}
${alignc}${wireless_essid wlan0}
${alignc}${color #E9E101}${wireless_link_bar 4,100 wlan0}${color}
${alignc}↑ ${upspeed wlan0} ${totalup wlan0}
${alignc}${upspeedgraph wlan0 10,120 ff0000 0000ff}
${alignc}↓ ${downspeed wlan0} ${totaldown wlan0}
${alignc}${downspeedgraph wlan0 10,120 ff0000 0000ff}

# WEATHER
${alignc}${font Open Sans:Bold:size=10}${color}/// ~~~ ${color #0066CC} WEATHER ${color} ~~~ \\\${font}

${execi 600 bash $HOME/1d_accuweather_rss/1d}\
${alignc}${font conkyweather:size=20}${color #F0FF00}${execpi 600  sed -n '2p' $HOME/1d_accuweather_rss/weather}${color}${font}
${alignc}${execpi 600 sed -n '1p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f-6}

${alignc}${font conkyweather:size=20}${color #F0FF00}${execpi 600  sed -n '5p' $HOME/1d_accuweather_rss/weather}${color}${font}
${alignc}${execi 3600 echo `date --date "0 day" | awk '{print $1" "$3" "$2" "$6}'`}
${alignc}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f-6}
${alignc}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f7-|fold -s }

${alignc}${font conkyweather : size=20}${color #F0FF00}${execpi 600  sed -n '8p' $HOME/1d_accuweather_rss/weather}${color}${font}
${alignc}${execi 3600 echo `date --date "1 day" | awk '{print $1" "$3" "$2" "$6}'`}
${alignc}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f-6}
${alignc}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -d ' ' -f7-|fold -s }

#------------------------KEEPS--------------------------
#${if_empty ${exec ifconfig wlan0 | grep 'inet addr:'}}LAN ${upspeed eth0}K ${downspeed eth0}K${else}${wireless_link_qual_perc wlan0}% ${wireless_essid wlan0} ${upspeed wlan0}K ${downspeed wlan0}K${endif}
#${alignc}HOME : ${fs_used /home} / ${fs_size /home} ${fs_type /}
#${alignc}${color #F0FF00}${fs_bar 4,100}  ${fs_used_perc /}%

#${voffset -8}${font Open Sans:Bold:size=10}${alignc}${color}///~~~ ${color dodgerblue3} SWAP #${color} ~~~\\\${font}
#${alignc}$color${font Open Sans:bold:size=8.5}Used:$font $swap of $swapmax$alignc $swapperc%
#${alignc}$color${font Open Sans:bold:size=8.5}Free:$font $swapfree

#${font Open Sans:Bold:size=8}${alignc}${color}///~~~ ${color dodgerblue3} DeadBeeF ${color} ~~~\\\${color #EC01 00}
#${alignc}${color 04F912}${execbar 4,100 ~/db.sh}
#${alignc}${execi 10 deadbeef --nowplaying '%a - %t'}

#${image ~/.conky/MXStartLongblue.png -p +100,-5 -s 80x35}
#${image ~/.conky/gnu.png -p +5,-5 -s 58x58}

# DISKS-MOUNTS
#${voffset -8}${font Open Sans:Bold:size=10}${alignc 0}${color}///~~~ ${color dodgerblue3} DISK-MOUNTS ${color} ~~~\\\${color #EC0100}$font
#font = 'Ubuntu Regular:size=8',
#${execpi 10 ~/semplice-conky-harddisks.sh}

]];
Last edited by KoO on Sat Jan 05, 2019 9:24 am, edited 1 time in total.
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

male

Re: Conky Helps and Stuff

#279 Post by male »

KoO wrote: (Just one thing I would like to have either Ethernet or Wifi displaying which one is being used at the time but not both...just can't the get ( if ) (end) (ifconfig) commands worked out.Any help with this would be welcome..)
above TEXT

Code: Select all

if_up_strictness address
underneath TEXT
example

Code: Select all

${if_up eth0}${voffset -10}${font Open Sans:bold:size=8.5}Ethernet $font$alignr ${addr eth0}
↑ ${upspeedf eth0} kb/s $alignr ${totalup eth0}
${voffset -14}$alignc${upspeedgraph eth0 10,120  ff0000 0000ff}
↓ ${downspeedf eth0} kb/s $alignr ${totaldown eth0}
${voffset -14}$alignc${downspeedgraph eth0 10,120  ff0000 0000ff}${endif}

${if_up wlan0}${voffset -10}${font Open Sans:bold:size=8.5}WiFi $font${wireless_bitrate wlan0} $alignr ${addr wlan0}
${voffset -14}$alignc${wireless_essid wlan0}
$alignc${color2}${wireless_link_bar 4,260 wlan0}${color E9E9E9} 
↑ ${upspeedf wlan0} kb/s $alignr ${totalup wlan0}
${voffset -14}$alignc${upspeedgraph wlan0 10,120 ff0000 0000ff}
↓ ${downspeedf wlan0} kb/s $alignr ${totaldown wlan0}
${voffset -14}$alignc${downspeedgraph wlan0 10,120 ff0000 0000ff}${endif}

User avatar
Jerry3904
Administrator
Posts: 21944
Joined: Wed Jul 19, 2006 6:13 am

Re: Conky Helps and Stuff

#280 Post by Jerry3904 »

Yeah, that is already being used in some of the conkies--see, for instance, MX-MyConky. We have been slowly going through the MX conkies, making changes like this where appropriate; see the GitHub repo mx-conky-data for recent changes that have not been packaged yet.

Anyone interested in improving the conky collection should use GitHub so that versioning and tracking become much easier.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “Software / Configuration”