122 lines
5.7 KiB
Text
122 lines
5.7 KiB
Text
conky.config = {
|
|
alignment = 'top_right',
|
|
background = true,
|
|
cpu_avg_samples = 2,
|
|
double_buffer = true,
|
|
font = 'xos4 Terminus:pixelsize=12',
|
|
draw_shades = false,
|
|
minimum_width = 260,
|
|
maximum_width = 260,
|
|
minimum_height = 1080,
|
|
gap_y = 5,
|
|
gap_x = 5,
|
|
no_buffers = true,
|
|
own_window = true,
|
|
own_window_class = Conky,
|
|
own_window_type = 'override',
|
|
own_window_transparent = false,
|
|
update_interval = 1.0,
|
|
use_xft = true,
|
|
default_color = 'A09F93',
|
|
format_human_readable = true,
|
|
short_units = true,
|
|
if_up_strictness = 'link',
|
|
|
|
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]]
|
|
};
|
|
|
|
conky.text = [[
|
|
#${voffset 8}
|
|
${color 6699CC}$alignc${font xos4 Terminus:pixelsize=18}${time %A %d %B %Y}$font$color
|
|
|
|
${color2}${font xos4 Terminus:pixelsize=14}Processeur${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
|
|
${voffset -10}${template0 1}
|
|
${template0 2}
|
|
${template0 3}
|
|
${template0 4}
|
|
${template2 5 1}
|
|
${template2 6 2}
|
|
${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
|
|
${voffset -10}${template1 1}
|
|
${template1 2}
|
|
${template1 3}
|
|
${template1 4}
|
|
${template1 5}
|
|
${template1 6}
|
|
${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}
|
|
|
|
${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}
|
|
|
|
${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}
|
|
|
|
${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}
|
|
|
|
${color2}${font xos4 Terminus:pixelsize=14}Disque${font}${alignr}${if_match $hddtemp>=50}${color F2777A}$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}
|
|
${voffset -10}
|
|
${template3 /}
|
|
${template3 /home}
|
|
${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
|
|
Uptime$alignr$uptime
|
|
Ventilateur$alignr${if_match $ibm_fan>=3000}${color F2777A}$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
|
|
|
|
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 2 | 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) )))}
|
|
|
|
${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color}
|
|
$moc_curtime / $moc_totaltime$alignr$moc_timeleft
|
|
${execibar 3 echo $(($(mocp -Q "%cs") * 100 / $(mocp -Q "%ts")))}
|
|
Titre$alignr${scroll wait 32 1 4 $moc_song}
|
|
Artiste$alignr${scroll wait 32 1 4 $moc_artist}
|
|
Album$alignr${scroll wait 32 1 4 $moc_album}
|
|
#
|
|
#
|
|
#Bitrate$alignr$moc_bitrate
|
|
#Rate$alignr$moc_rate
|
|
Fichier$alignr${scroll wait 32 1 4 $moc_file}$endif
|
|
|
|
#${color2}${font xos4 Terminus:pixelsize=14}Tracker${font}$color
|
|
#${execi 300 curl https://tracker.breizh.me/stats}
|
|
|
|
${execpi 30 cat ~/notes}
|
|
#foncé 386587
|
|
#clair FFCC66
|
|
# own_window_argb_visual = true,
|
|
# own_window_argb_value = 150,
|
|
]]
|