Skip to content
Snippets Groups Projects
.conkyrc 5.11 KiB
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_right',
    border_width = 10,
    border_inner_margin = 10,
    cpu_avg_samples = 2,
    default_color = '#B7B7B7',
    default_outline_color = '#B7B7B7',
    default_shade_color = '#B7B7B7',
    draw_borders = true,
    draw_graph_borders = true,
    draw_shades = false,
    double_buffer = true,
    use_xft = true,
    font = 'Inconsolata Regular:size=10',
    gap_x = 20,
    gap_y = 50,
    minimum_height = 200,
    minimum_width = 240,
    maximum_width = 270,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    extra_newline = false,
    own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'desktop',
    own_window_colour = '#303030',
    own_window_argb_visual = true,
    own_window_argb_value = 190,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    xftalpha = 0.8,
    xinerama_head = 3,
    times_in_seconds = false,
    color1 = 'FFFFFF',
    color2 = 'BFBFBF'
}

conky.text = [[
${color grey}Ip Publique:$color ${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
${voffset 0}

${font :size=40}${color #FFFFFF}${alignc}${time %H:%M}${font}
${voffset 10}${color #BFBFBF}${alignc}${time %A}, ${time %d}. ${time  %b} ${time %Y}
#${voffset 5}
${color #FFFFFF}${hr}
${font :bold:size=11}System
${color lightgrey}Uptime:$color $uptime $alignr${color lightgrey}Load:$color $loadavg
${font :normal:size=10}
${color #B7B7B7}Kernel: ${alignr}${kernel}${voffset 5}
Battery ${alignr}${format_time ${battery_time BAT0} "\hh \mm"} ${if_match "${acpiacadapter ADP1}" == "on-line"}until fully charged ${else}until fully discharged ${endif} (${battery_percent BAT0}%)
${if_match ${battery_percent BAT0} <=20}${color #FF0000}${else}${if_match ${battery_percent BAT0} <=50}${color #FF8000}${else}${if_match ${battery_percent BAT0} <=70}${color #FAF151}${else}${color #01DF01}${endif}${endif}${endif}${battery_bar 5,270}
${color #B7B7B7}Processor ${alignr}${cpu cpu0}% | ${freq_g (1)} GHz
${color #FFFFFF}${alignr}${cpubar 5,270}
${color #B7B7B7}RAM ${alignr}${mem} ($memperc%) / ${memmax}
${color #FFFFFF}${membar 5,270}
#------------
${color #FFFFFF}${hr}
${font :bold:size=11}FS${font :normal:size=10}${color #B7B7B7}${alignr} 

${color #B7B7B7}Swap ${alignr}${swap}($swapperc%) / ${swapmax}
${color #FFFFFF}${swapbar 5,270}
${color #B7B7B7}Boot ${alignr}${fs_used /boot} (${fs_used_perc /boot}%) / ${fs_size /boot}
${color #FFFFFF}${alignr}${fs_bar 5,270 /boot}
${color #B7B7B7}Root ${alignr}${fs_used /} (${fs_used_perc /}%) / ${fs_size /}
${color #FFFFFF}${alignr}${fs_bar 5,270 /}
${color #B7B7B7}Home ${alignr}${fs_used /home} (${fs_used_perc /home}%) / ${fs_size /home}
${color #FFFFFF}${fs_bar 5,270 /home}
#------------
${color CC9900}NETWORK WIFI (${addr wlp0s20f3}) ${hr 2}$color
Down: $color${downspeed wlp0s20f3} k/s ${alignr}Up: ${upspeed wlp0s20f3} k/s
${downspeedgraph wlp0s20f3 25,140 000000 ff0000} ${alignr}${upspeedgraph wlp0s20f3
25,140 000000 00ff00}$color
Total: ${totaldown wlp0s20f3} ${alignr}Total: ${totalup wlp0s20f3}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color CC9900}NETWORK LAN (${addr enx00e04c68067f}) ${hr 2}$color
Down: $color${downspeed enx00e04c68067f} k/s ${alignr}Up: ${upspeed enx00e04c68067f} k/s
${downspeedgraph enx00e04c68067f 25,140 000000 ff0000} ${alignr}${upspeedgraph enx00e04c68067f
25,140 000000 00ff00}$color
Total: ${totaldown enx00e04c68067f} ${alignr}Total: ${totalup enx00e04c68067f}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}




PROCESS ${hr 2}

Name                             ${alignr}CPU      ${alignr}RAM
${color #e09495} ${top name 1}   ${alignr}${top cpu 1}  ${alignr}${top mem 1}
${color #e0d094} ${top name 2}   ${alignr}${top cpu 2}  ${alignr}${top mem 2}
${color1} ${top name 3}    ${alignr}${top cpu 3}  ${alignr}${top mem 3}
${color1} ${top name 4}    ${alignr}${top cpu 4}  ${alignr}${top mem 4}
${color1} ${top name 5}    ${alignr}${top cpu 5}  ${alignr}${top mem 5}

]];