Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
01-29-2022, 11:55 AM
#1
LQ Newbie
Registered: Mar 2021
Posts: 12
Rep:
Search for conky with date-time-weather
Hello,
I use Conky on my Linux Mint 21 desktop. I find the standard one too ugly and wish to have a better looking one with Time, Date and Weather.
I would like something like the following attached.
Can someone guide me to the script for this?
Thank you
01-29-2022, 05:44 PM
#2
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
wow that is a nice conky pic. Mine has all that info plus a bit more. But mine is rather plain.
My conkyrc:
Code:
conky.config = {
background = true,
use_xft = true,
font = '123:size=8',
xftalpha = 0.1,
update_interval = 0.5,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 250,
minimum_height = 5,
maximum_width = 400,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'gray',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 10,
gap_y = 10,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 1,
override_utf8_locale = false,
use_spacer = 'right'
}
conky.text = [[
$color${font}${font Open Sans:size=44}$alignc${time %H:%M}$font$color${font Open Sans:size=15}
$alignc${time %a},${time %d %b %Y}$font$color
${font Arial:size=20}$alignc${color #0040FF} Debian Unstable ${color #0040FF}
${voffset -90}
${color #505050}
${font}
${font Arial:bold:size=10}${color #00AAFF}SYSTEM ${color #0000AA} ${hr 2}
$font${color #505050}$sysname $kernel $alignr $machine
Frequency ${color #AAAAAA}$alignr${freq_g cpu0}Ghz${color #505050}
Uptime ${color #AAAAAA}$alignr${uptime}${color #505050}
File System $alignr${fs_type}
${font Arial:bold:size=10}${color #00AAFF}CPU ${color #0000AA}${hr 2}
$font${color #505050}Temp: $alignr ${color #AAAAAA}${exec /usr/bin/vcgencmd measure_temp | cut -c6-9} C
$font${color #505050}CPU1 ${color #AAAAAA}${cpu cpu1}%${color #505050} ${cpubar cpu1}
CPU2 ${color #AAAAAA}${cpu cpu2}%${color #505050} ${cpubar cpu2}
CPU3 ${color #AAAAAA}${cpu cpu3}%${color #505050} ${cpubar cpu3}
CPU4 ${color #AAAAAA}${cpu cpu4}%${color #505050} ${cpubar cpu4}
${font Arial:bold:size=10}${color #00AAFF}MEMORY ${color #0000AA}${hr 2}
$font${color #505050}MEM $alignc ${color #AAAAAA}$mem${color #505050} / $memmax $alignr $memperc%
$membar
$font${color #505050}SWAP $alignc ${color #AAAAAA}$swap${color #505050} / $swapmax $alignr $swapperc%
$swapbar
${font Arial:bold:size=10}${color #00AAFF}Storage ${color #0000AA}${hr 2}
$font${color #505050}/home $alignc ${color #AAAAAA}${fs_used /home} / ${fs_size /home}${color #505050} $alignr ${fs_free_perc /home}%
${fs_bar /home}
${font Arial:bold:size=10}${color #00AAFF}Weather${color #AAAAAA} ${execi 300 /home/pi/weather.sh 37058}
${font Arial:bold:size=10}${color #00AAFF}TOP PROCESSES ${color #0000AA}${hr 2}
${color #505050}$font${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %
${font Arial:bold:size=10}${color #00AAFF}NETWORK ${color #0000AA}${hr 2}
$font${color #505050}IP on wlan0 $alignr ${color #AAAAAA}${addr wlan0}
${color #505050}Down $alignr ${color #AAAAAA}${downspeed wlan0}
${color #505050}Up $alignr ${color #AAAAAA}${upspeed wlan0}
${color #505050}Downloaded: $alignr ${color #AAAAAA}${totaldown wlan0}
${color #505050}Uploaded: $alignr ${color #AAAAAA}${totalup wlan0}
$font${color #505050}IP on eth0 $alignr ${color #AAAAAA}${addr eth0}
${color #505050}Down $alignr ${color #AAAAAA}${downspeed eth0}
${color #505050}Up $alignr ${color #AAAAAA}${upspeed eth0}
${color #505050}Downloaded: $alignr ${color #AAAAAA}${totaldown eth0}
${color #505050}Uploaded: $alignr ${color #AAAAAA}${totalup eth0}
]]
The weather.sh
Code:
#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
echo
echo "USAGE: weather.sh <locationcode>"
echo
exit 0;
fi
curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }'
01-29-2022, 06:46 PM
#3
LQ Veteran
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Mine is just a one liner in antiX.
I think he looking for this.
https://www.noobslab.com/2015/07/fla...t-version.html
Look for Flair Conky in Mints synaptic first.
01-30-2022, 08:12 AM
#5
LQ Newbie
Registered: Mar 2021
Posts: 12
Original Poster
Rep:
Thank you to all for your help
All times are GMT -5. The time now is 11:21 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News