-
#${color #75507B}天气状况${color}${color #8AE234}${hr 1}${color}
-
#${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CN}
-
#${font Weather:size=25}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WS} ${font Arrows:size=11}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=BF}$font
-
#${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SS}
-
#${font Weather:size=20}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
-
#${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT --startday=1 --endday=4 --spaces=11}
-
#${color #75507B}E-MAIL${color}${color #8AE234}${hr 1}${color}
-
#You have ${color red}${texeci 1800 perl ~/conkyrc/check_gmail.sh} ${color}new mail(s)
小备份conky配置文件
今天闲的无聊有吧conky给倒腾出来了,找了一个基本差不多的配置,然后开始无尽的任务(不对是无尽的调整)算是调整的七七八八了吧,至少我看着舒服了。这个说是在的没有多华丽,但是很多Linuxer都会使用,真不知道为啥,GNOME Do里有很多华丽的东东,不知到用的人有多少,反正我是不用的,打从windows时代就有抗拒心理,也可以说是阴影吧,总之不爽。
文章来源:微笑
然后当然是贴代码备份之用,当然如果你看到了喜欢也可以使用。顺便说下这里有另外两个文件,一个是天气预报,一个是Gmail新邮件提示,我没启用,想用的话取消注释即可。
Gmail提示把两处xxxx修改为自己的用户名和密码,不用加@gmail.com(sh文件):
-
#!/bin/bash
-
-
gmail_login="xxxx"
-
gmail_password="xxxx"
-
-
dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
-
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
-
--no-check-certificate | grep 'fullcount' \
-
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
-
-
if [ -z "$dane" ]; then
-
echo "Error"
-
else
-
echo "$dane"
-
fi
天气预报(python脚本)点击这里下载。(提取码:8606213248276382)
另外提醒下载的同志们,这个网盘的广告很多,下载地址在最下面,看清楚了再点,如果有好个网盘也希望能告诉我,忍受不了这个了。
以下是.conkyrc的全部内容:
-
background yes
-
cpu_avg_samples 2
-
net_avg_samples 2
-
out_to_console no
-
use_xft yes
-
xftfont Microsoft_YaHei:size=10
-
own_window_transparent no
-
xftalpha 0.8
-
mail_spool $MAIL
-
update_interval 1
-
own_window yes
-
own_window_transparent yes
-
own_window_hints undecorated,below,skip_taskbar
-
own_window_type override
-
double_buffer yes
-
minimum_size 260 5
-
maximum_width 280
-
draw_shades yes
-
draw_outline no
-
draw_borders no
-
stippled_borders yes
-
border_margin 4
-
border_width 1
-
default_color #FFFFFF
-
default_shade_color #E8E9ED
-
default_outline_color green
-
gap_x 10
-
gap_y 130
-
alignment top_right
-
use_spacer none
-
no_buffers yes
-
uppercase no
-
TEXT
-
${color #75507B}${font Micorsoft_Yahei:size=12}时间记忆${font}${color}${color #8AE234}${hr 1}${color}
-
${font Terminus:size=22}${color #75507B}${time %l:%M:%S}${font}${alignr}记忆,憔悴de${color}
-
${color #75507B}${alignc}${font Terminus:size=11}${time %b %d %a}${color}${font}
-
${color #75507B}系统信息:${color}${color #8AE234}${hr 1}${color}
-
${color #75507B}宿主信息:${color}${alignr}${color #8AE234}$nodename${color}
-
${color #75507B}内核信息:${color}${alignr}${color #8AE234}$kernel${color}
-
${color #75507B}开机时长:${color}${alignr}${color #8AE234}$uptime${color}
-
#${color #75507B}CPU温度:${color}${alignr}${color #8AE234}${acpitemp}°C${color}
-
${font Terminus:size=11}${color #75507B}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font Terminus:size=11}${color}
-
${color #8AE234}${hr 1}${color}
-
${color #75507B}CPU1 ${cpu cpu1}%${alignr}CPU2 ${cpu cpu2}%${color}
-
${voffset -6}${cpugraph cpu1 15,115 000000 ff4500 } $alignr${offset -2}${cpugraph cpu2 15,115 000000 436eee}
-
${color #75507B}Ram ${color}${alignr}${color #8AE234}$mem / $memmax ($memperc%)${color}
-
${color #8AE234}${membar 4}${color}
-
${color #75507B}swap ${color}${alignr}${color #8AE234}$swap / $swapmax ($swapperc%)${color}
-
${color #8AE234}${swapbar 4}${color}
-
${color #75507B}Highest CPU ${color}${alignc}${color #8AE234} CPU%${alignr}PID${color}
-
${color #75507B}${top name 1}${color}${alignc}${color #8AE234}${top cpu 1}${color}${color #8AE234}${alignr}${top pid 1}${color}
-
${color #75507B}${top name 2}${color}${alignc}${color #8AE234}${top cpu 2}${color}${color #8AE234}${alignr}${top pid 2}${color}
-
${color #75507B}${top name 3}${color}${alignc}${color #8AE234}${top cpu 3}${color}${color #8AE234}${alignr}${top pid 3}${color}
-
${color #75507B}Highest MEM ${color}${alignc}${color #8AE234} MEM%${alignr}PID${color}
-
${color #75507B}${top_mem name 1}${color}${alignc}${color #8AE234}${top_mem mem 1}${alignr}${top_mem pid 1}${color}
-
${color #75507B}${top_mem name 2}${color}${alignc}${color #8AE234}${top_mem mem 2}${alignr}${top_mem pid 2}${color}
-
${color #75507B}${top_mem name 3}${color}${alignc}${color #8AE234}${top_mem mem 3}${alignr}${top_mem pid 3}${color}
-
${color #75507B}${font}文件系统${color #8AE234}${hr 1}${color}
-
${color #75507B}Root:${color} ${alignr}${color #8AE234}${fs_free /} ${color} @ ${color #8AE234}${fs_size /}${color}
-
${color #8AE234}${fs_bar 4 /}${color}
-
${color #75507B}Home:${color} ${alignr}${color #8AE234}${fs_free /home} ${color} @ ${color #8AE234}${fs_size /home}${color}
-
${color #8AE234}${fs_bar 4 /home}${color}
-
${color #75507B}${font}网络流量${color #8AE234}${hr 1}${color}
-
${color #8AE234}Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s${color}
-
${color #8AE234}${downspeedgraph eth0 15,115} ${alignr}${upspeedgraph eth0 15,115}${color}
-
${color #8AE234}Total ${totaldown eth0} ${alignr}Total ${totalup eth0}${color}
-
#${color #75507B}天气状况${color}${color #8AE234}${hr 1}${color}
-
#${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CN}
-
#${font Weather:size=25}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WS} ${font Arrows:size=11}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=BF}$font
-
#${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=SS}
-
#${font Weather:size=20}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
-
#${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0141 --datatype=HT --startday=1 --endday=4 --spaces=11}
-
#${color #75507B}E-MAIL${color}${color #8AE234}${hr 1}${color}
-
#You have ${color red}${texeci 1800 perl ~/conkyrc/check_gmail.sh} ${color}new mail(s)
-
#${color #75507B}RSS${color}${color #8AE234}${hr 1}${color}
-
#${rss http://www.j2megame.org/index.php/component/option-com_rss/feed-RSS2.0/no_html-1.html 5 item_titles 3}
PS.我个人比较喜欢简单(减少配置麻烦=。=),当然如果你喜欢更多的内容可以到ubunut官方论坛去找找有很多很不错的配置。
2023年4月23日 01:07
crediblebh