X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/295ba2cb7f52a170d0daab1ce337be3f040597b0..refs/heads/cadscan:/conkyrc diff --git a/conkyrc b/conkyrc index 8736f35..6eb26d0 100644 --- a/conkyrc +++ b/conkyrc @@ -1,77 +1,132 @@ -# 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-2010 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 . -# - alignment top_left -background no -border_width 1 -cpu_avg_samples 2 -default_color white -default_outline_color white -default_shade_color white +gap_x 8 +gap_y 30 +border_width 0 +border_inner_margin 8 + +minimum_size 320 1080 +maximum_width 320 + +default_bar_size 92 6 + +format_human_readable + +use_xft yes +override_utf8_locale yes +xftfont Anonymous Pro:style=Bold:size=11 +text_buffer_size 2048 + +own_window yes +own_window_argb_visual yes +own_window_argb_value 128 +own_window_class Conky +own_window_hints below,skip_taskbar,skip_pager +own_window_transparent no +own_window_type desktop + draw_borders no draw_graph_borders yes draw_outline no -draw_shades no -use_xft yes -xftfont DejaVu Sans Mono:size=12 -gap_x 5 -gap_y 60 -minimum_size 5 5 +draw_shades yes +default_color white +default_outline_color white +default_shade_color 000000 + +background no +cpu_avg_samples 2 net_avg_samples 2 +extra_newline no no_buffers yes +double_buffer yes out_to_console no out_to_stderr no -extra_newline no -own_window yes -own_window_class Conky -own_window_type desktop +show_graph_range no +show_graph_scale no stippled_borders 0 -update_interval 1.0 +update_interval 2 uppercase no use_spacer none -show_graph_scale no -show_graph_range no + +lua_load ~/.conky/functions.lua TEXT -${scroll 16 $nodename - $sysname $kernel on $machine | } -$hr -${color grey}Uptime:$color $uptime -${color grey}Frequency (in MHz):$color $freq -${color grey}Frequency (in GHz):$color $freq_g -${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4} -${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4} -${color grey}CPU Usage:$color $cpu% ${cpubar 4} -${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes -$hr -${color grey}File systems: - / $color${fs_used /}/${fs_size /} ${fs_bar 6 /} -${color grey}Networking: -Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0} -$hr -${color grey}Name PID CPU% MEM% -${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} -${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} -${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} -${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} +${image ~/.conky/chakra.png -p 10,15 -s 70x70} +${image ~/.conky/awesome.png -p 100,15 -s 70x70}# +${font Droid Sans:style=Bold:size=24}${alignr}${time %R} +${font Droid Sans:style=Bold:size=12}${alignr}${time %a, %e %b %Y}${font} +${font Droid Sans:style=Bold:size=12}${color 75D1FF}SYSTEM${color 1B71CC}$hr${color}${font} +Kernel: ${alignr}${kernel} +Uptime: ${alignr}${uptime} +# |--Updates +Updates: ${alignr}${font Droid Sans:style=Bold:size=10}${execpi 600 checkupdates | wc -l | sed '/^0$/! s/^\(.*\)$/${color 75D1FF}\1${color}/' }${font} Package(s) + +# |--Mail +${font Droid Sans:style=Bold:size=12}${color 75D1FF}MAIL${color 1B71CC}$hr${color}${font} +${lua_parse mail} + +# |--MPD +${font Droid Sans:style=Bold:size=12}${color 75D1FF}MPD${color 1B71CC}$hr${color}${font} + +# |--CPU +${font Droid Sans:style=Bold:size=12}${color 75D1FF}CPU${color 1B71CC}$hr${color}${font} +${color AAAAAA}${exec grep "model name" /proc/cpuinfo | uniq | sed 's/.*: //'}${color} +${if_empty ${cpu cpu1}}${else}Core 0 @ ${color 75D1FF}${alignr 65}${cpu cpu1}%${alignr}${cpubar cpu1 7,150}${color} +${endif}${if_empty ${cpu cpu2}}${else}Core 1 @ ${color 75D1FF}${alignr 65}${cpu cpu2}%${alignr}${cpubar cpu2 7,150}${color} +${endif}${if_empty ${cpu cpu3}}${else}Core 2 @ ${color 75D1FF}${alignr 65}${cpu cpu3}%${alignr}${cpubar cpu3 7,150}${color} +${endif}${if_empty ${cpu cpu4}}${else}Core 3 @ ${color 75D1FF}${alignr 65}${cpu cpu4}%${alignr}${cpubar cpu4 7,150}${color} +${endif}${if_empty ${cpu cpu5}}${else}Core 4 @ ${color 75D1FF}${alignr 65}${cpu cpu5}%${alignr}${cpubar cpu5 7,150}${color} +${endif}${if_empty ${cpu cpu6}}${else}Core 5 @ ${color 75D1FF}${alignr 65}${cpu cpu6}%${alignr}${cpubar cpu6 7,150}${color} +${endif}${if_empty ${cpu cpu7}}${else}Core 6 @ ${color 75D1FF}${alignr 65}${cpu cpu7}%${alignr}${cpubar cpu7 7,150}${color} +${endif}${if_empty ${cpu cpu8}}${else}Core 7 @ ${color 75D1FF}${alignr 65}${cpu cpu8}%${alignr}${cpubar cpu8 7,150}${color} +${endif}${if_empty ${cpu cpu9}}${else}Core 8 @ ${color 75D1FF}${alignr 65}${cpu cpu9}%${alignr}${cpubar cpu9 7,150}${color} +${endif} +# |--MEM +${font Droid Sans:style=Bold:size=12}${color 75D1FF}MEMORY${color 1B71CC}$hr${color}${font} +RAM${alignr}$memperc% +${mem}/${memmax}${alignr}${color 75D1FF}${membar 8,150}${color}# +# |--SWAP +${if_match "${swapmax}" == "0B"} +SWAP${alignr}${swapperc}# +${swap}/${swapmax}${alignr}${color 75D1FF}${swapbar 8,150}${color}# +${endif} + +# |--PROC +${font Droid Sans:style=Bold:size=12}${color 75D1FF}TOP${color 1B71CC}$hr${color}${font} +${color AAAAAA}PROCESS${alignr 120}CPU${alignr 20}RAM${color} +${top name 1}${alignr 80}${top cpu 1}${alignr}${top mem 1} +${top name 2}${alignr 80}${top cpu 2}${alignr}${top mem 2} +${top name 3}${alignr 80}${top cpu 3}${alignr}${top mem 3} +${top name 4}${alignr 80}${top cpu 4}${alignr}${top mem 4} +${top name 5}${alignr 80}${top cpu 5}${alignr}${top mem 5} + +############# +# - NETWORK - # +############### +${font Droid Sans:style=Bold:size=12}${color 75D1FF}NETWORK${color 1B71CC}$hr${color}${font} +Public IP: ${alignr}${execi 1800 ~/bin/whatsmyip}# +${if_up enp3s0} +Local IP: ${alignr}${addr enp3s0} +Upload: ${alignr 10}${upspeed enp3s0}/s${alignr}${color 75D1FF}${upspeedgraph enp3s0 20,150}${color} +${voffset -20}Overall: ${alignr 160}${totalup enp3s0} +Download: ${alignr 10}${downspeed enp3s0}/s${alignr}${color 75D1FF}${downspeedgraph enp3s0 20,150}${color} +${voffset -20}Overall: ${alignr 160}${totaldown enp3s0}${endif}# +${if_up wlp3s0} +Local IP: ${alignr}${addr wlp3s0} +Upload: ${alignr 10}${upspeed wlp3s0}/s${alignr}${color 75D1FF}${upspeedgraph wlp3s0 20,150}${color} +${voffset -20}Overall: ${alignr 160}${totalup wlp3s0} +Download: ${alignr 10}${downspeed wlp3s0}/s${alignr}${color 75D1FF}${downspeedgraph wlp3s0 20,150}${color} +${voffset -20}Overall: ${alignr 160}${totaldown wlp3s0}${endif} + +########## +# - HD - # +########## +${font Droid Sans:style=Bold:size=12}${color 75D1FF}HDD${color 1B71CC}$hr${color}${font} +# |--HD default +Root: ${fs_used_perc /}%${goto 100}${alignr}${color 75D1FF}${fs_bar 7,150 /}${color} +Free: ${fs_free /} ${alignr 1}Used: ${fs_used /} +Home: ${fs_used_perc /home}%${goto 100}${alignr}${color 75D1FF}${fs_bar 7,150 /home}${color} +Free: ${fs_free /home} ${alignr 1}Used: ${fs_used /home} +${if_mounted /mnt/data}data: ${fs_used_perc /mnt/data}%${goto 100}${alignr}${color 75D1FF}${fs_bar 7,150 /mnt/data}${color} +Free: ${fs_free /mnt/data} ${alignr 1}Used: ${fs_used /mnt/data}${endif} +${if_mounted /mnt/Skaro}Skaro: ${fs_used_perc /mnt/Skaro}%${goto 100}${alignr}${color 75D1FF}${fs_bar 7,150 /mnt/Skaro}${color} +Free: ${fs_free /mnt/Skaro} ${alignr 1}Used: ${fs_used /mnt/Skaro}${endif}