Modification conky

This commit is contained in:
Breizh 2018-06-05 22:31:01 +02:00
parent d91cf5de92
commit d2d3c6baae

View file

@ -15,19 +15,20 @@ conky.config = {
own_window_class = Conky,
own_window_type = 'override',
own_window_transparent = false,
own_window_colour = '#2D2D2D',
update_interval = 1.0,
use_xft = true,
default_color = 'A09F93',
default_color = '#D3D0C8',
format_human_readable = true,
short_units = true,
if_up_strictness = 'link',
color2 = 'F2F0EC',
color2 = '#F2F0EC',
template0 = [[${cpubar cpu\1 6,107}${goto 127}${top name \1}$alignr${top cpu \1}%]],
template1 = [[${top_mem name \1}$alignr${top_mem mem_res \1}\ \ \ ${top_mem mem \1}%]],
template2 = [[$color${goto 127}${top name \1}$alignr${top cpu \1}%${goto 115}$alignr${offset -150}${if_match ${freq \2}<1000}${freq \2} MHz$else${freq_G \2} GHz$endif]],
template3 = [[\1$alignr${fs_free \1} ${if_match ${fs_used_perc \1}>=90}${color F2777A}$else${if_match ${fs_used_perc \1}>=80}${color FFCC66}$else${color 99CC99}$endif$endif${fs_bar 6,125 \1}$color]]
template3 = [[\1$alignr${fs_free \1} ${if_match ${fs_used_perc \1}>=90}${color CC99CC}$else${if_match ${fs_used_perc \1}>=80}${color 6699CC}$else${color 66CCCC}$endif$endif${fs_bar 6,125 \1}$color]]
};
conky.text = [[
@ -35,8 +36,8 @@ conky.text = [[
${color 6699CC}$alignc${font xos4 Terminus:pixelsize=18}${time %A %d %B %Y}$font$color
${color2}${font xos4 Terminus:pixelsize=14}Processeur${color}${font}
#${alignr}${font}${if_match ${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}>=60}${color F2777A}$endif${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}°C${color}
${cpugraph 99CC99 F2777A -t}${color2}${voffset 10}${goto 100}$alignc$cpu%$color
#${alignr}${font}${if_match ${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}>=60}${color CC99CC}$endif${exec sensors -u | grep "temp1_input" | cut -d" " -f4 | cut -d. -f1 | head -n 1}°C${color}
${cpugraph 66CCCC CC99CC -t}${color2}${voffset 10}${goto 100}$alignc$cpu%$color
${voffset -10}${template0 1}
${template0 2}
${template0 3}
@ -47,7 +48,7 @@ ${template2 7 3}
${template2 8 4}
${color2}${font xos4 Terminus:pixelsize=14}Mémoire vive${font}${alignr}$mem / $memeasyfree / $memmax${color}
${memgraph 99CC99 F2777A -t}${color2}${voffset 10}${goto 95}$alignc$memperc%$color
${memgraph 66CCCC CC99CC -t}${color2}${voffset 10}${goto 95}$alignc$memperc%$color
${voffset -10}${template1 1}
${template1 2}
${template1 3}
@ -58,28 +59,28 @@ ${template1 7}
${template1 8}
${color2}${font xos4 Terminus:pixelsize=14}Swap${font}${alignr}$swap / $swapfree / $swapmax${color}
$swapperc% ${if_match $swapperc>80}${color F2777A}$else${if_match $swapperc>40}${color FFCC66}$else${color 99CC99}$endif$endif${swapbar}$color${if_up wlp1s0}
$swapperc% ${if_match $swapperc>80}${color CC99CC}$else${if_match $swapperc>40}${color 6699CC}$else${color 66CCCC}$endif$endif${swapbar}$color${if_up wlp1s0}
${color2}${font xos4 Terminus:pixelsize=14}Wi-Fi${font}${alignr}${addr wlp1s0}${color}
${wireless_essid} ${wireless_link_qual_perc wlp1s0}%$alignr${wireless_freq wlp1s0}
Canal ${wireless_channel wlp1s0}$alignr${wireless_bitrate wlp1s0}
Descendant ${totaldown wlp1s0}${alignr}${totalup wlp1s0} Montant
${downspeed wlp1s0}${alignr}${upspeed wlp1s0}
${downspeedgraph wlp1s0 25,128 FFCC66 99CC99}$alignr${upspeedgraph wlp1s0 25,128 FFCC66 99CC99}${voffset -10}${endif}${if_up enp0s31f6}
${downspeedgraph wlp1s0 25,128 6699CC 66CCCC}$alignr${upspeedgraph wlp1s0 25,128 6699CC 66CCCC}${voffset -10}${endif}${if_up enp0s31f6}
${color2}${font xos4 Terminus:pixelsize=14}Ethernet${font}${alignr}${addr enp0s31f6}${color}
Descendant ${totaldown enp0s31f6}${alignr}${totalup enp0s31f6} Montant
${downspeed enp0s31f6}${alignr}${upspeed enp0s31f6}
${downspeedgraph enp0s31f6 25,128 FFCC66 99CC99}$alignr${upspeedgraph enp0s31f6 25,128 FFCC66 99CC99}${voffset -10}${endif}${if_up tun0}
${downspeedgraph enp0s31f6 25,128 6699CC 66CCCC}$alignr${upspeedgraph enp0s31f6 25,128 6699CC 66CCCC}${voffset -10}${endif}${if_up tun0}
${color2}${font xos4 Terminus:pixelsize=14}VPN${font}${alignr}${addr tun0}${color}
Descendant ${totaldown tun0}${alignr}${totalup tun0} Montant
${downspeed tun0}${alignr}${upspeed tun0}
${downspeedgraph tun0 25,128 FFCC66 99CC99}$alignr${upspeedgraph tun0 25,128 FFCC66 99CC99}${voffset -10}${endif}
${downspeedgraph tun0 25,128 6699CC 66CCCC}$alignr${upspeedgraph tun0 25,128 6699CC 66CCCC}${voffset -10}${endif}
${color2}${font xos4 Terminus:pixelsize=14}Disque${font}${alignr}${if_match $hddtemp>=50}${color F2777A}$endif${hddtemp}°C${color}
${color2}${font xos4 Terminus:pixelsize=14}Disque${font}${alignr}${if_match $hddtemp>=50}${color CC99CC}$endif${hddtemp}°C${color}
Lecture ${diskio_read sda}${alignr}${diskio_write sda} Écriture
${diskiograph_read sda 25,128 FFCC66 99CC99}$alignr${diskiograph_write sda 25,128 FFCC66 99CC99}
${diskiograph_read sda 25,128 6699CC 66CCCC}$alignr${diskiograph_write sda 25,128 6699CC 66CCCC}
${voffset -10}
${template3 /}
${template3 /home}
@ -87,15 +88,15 @@ ${template3 /tmp}
${voffset -5}
${color2}${font xos4 Terminus:pixelsize=14}Système${font}${alignr}${execi 900 lsb_release -ds | tr -d '"'}${color}
Noyau$alignr${no_update $kernel}
Charge moyenne$alignr${if_match ${exec uptime | cut -d',' -f3 | cut -d' ' -f5}>=4}${color F2777A}$endif$loadavg$color
Charge moyenne$alignr${if_match ${exec uptime | cut -d',' -f3 | cut -d' ' -f5}>=4}${color CC99CC}$endif$loadavg$color
Uptime$alignr$uptime
Ventilateur$alignr${if_match $ibm_fan>=3000}${color F2777A}$endif$ibm_fan RPM$color
Ventilateur$alignr${if_match $ibm_fan>=3000}${color CC99CC}$endif$ibm_fan RPM$color
Entropie$alignr$entropy_avail - $entropy_perc%
IP publique$alignr${scroll wait 24 1 4 ${execi 300 curl --connect-timeout 5 ifconfig.co}}
breizh.me$alignr${execi 300 host breizh.me | grep 'has address' | cut -d' ' -f4}
${if_match $battery_percent<10}${color F2777A}${blink Batterie $battery}${else}Batterie $battery$endif
${if_match $battery_percent<20}${color F2777A}$else${if_match $battery_percent<60}${color FFCC66}$else${color 99CC99}$endif$endif$battery_bar$color
${if_match $battery_percent<10}${color CC99CC}${blink Batterie $battery}${else}Batterie $battery$endif
${if_match $battery_percent<20}${color CC99CC}$else${if_match $battery_percent<60}${color 6699CC}$else${color 66CCCC}$endif$endif$battery_bar$color
Rétro-éclairage ${exec echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}%$alignr${exec redshift -p | head -n 3 | tail -n 1 | cut -d':' -f2}
${execbar echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}
@ -117,7 +118,7 @@ Fichier$alignr${scroll wait 32 1 4 $moc_file}$endif
${execpi 30 cat ~/notes}
#foncé 386587
#clair FFCC66
#clair 6699CC
# own_window_argb_visual = true,
# own_window_argb_value = 150,
]]