Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- vim: ts=4 sw=4 noet ai cindent syntax=lua
- -- manual http://conky.sourceforge.net/docs.html
- --[[
- 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 = {
- use_xft = true,
- xftalpha = 0.8,
- update_interval = 1.0,
- total_run_times = 0,
- own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
- own_window = true ,
- own_window_type = 'conky', -- dock, panel, normal , conky , desktop , override
- own_window_argb_visual = yes ,
- own_window_class = override ,
- own_window_transparent = yes ,
- own_window_argb_visual = yes ,
- own_window_argb_value = 145 , -- semi-transparent
- background = true,
- double_buffer = true,
- imlib_cache_size = 0,
- no_buffers = true,
- uppercase = false,
- cpu_avg_samples = 2,
- override_utf8_locale = true,
- -- placement
- alignment = 'top_right',
- gap_x = 25,
- gap_y = 25,
- -- default drawing
- draw_shades = false ,
- draw_outline = false ,
- draw_borders = false ,
- draw_graph_borders = true ,
- default_bar_width = 150 , default_bar_height = 5 ,
- default_graph_width = 150 , default_graph_height = 12,
- default_gauge_width = 20 , default_gauge_height = 20,
- -- colors
- font = 'Open Sans:size=10',
- default_color = '#EEEEEE',
- color1 = '#AABBFF',
- color2 = '#CCCCCC',
- color3 = '#dbe2c3',
- -- layouting
- template0 = [[${font Liberation Sans:bold:size=11}${color2}\1 ${color3}${hr 2}${font}]],
- template1 = [[${color1}\1]],
- template2 = [[${goto 100}${color}]],
- template3 = [[${goto 180}${color}${alignr}]],
- }
- conky.text = [[
- # https://gist.github.com/Lqp1/1b6b459a4e660bfc26e0a5312a6be7ca
- # https://distrowatch.com/search.php?category=From+RAM#simple
- ## horas
- ${font Open Sans:size=20} ${color3} ${alignc} ${time %H:%M}
- ## Dia week, day month year
- ${font} ${color3} ${alignc} ${time %a}, ${time %d %b %Y}
- ${font Open Sans:Bold:size=10}${color2}SYSTEM ${hr 1}${offset 1}
- ${offset 5}${color3}OS Name ${alignr} ${color1} ${execi 86400 cat `ls -atr /etc/*-release | tail -2` | grep "PRETTY_NAME" | cut -d= -f2 | sed 's/"//g'} ${offset 1}
- ${offset 5}${color3}Kernel ${alignr} ${color1} $kernel ${offset 1}
- ${offset 5}${color3}Uptime ${alignr} ${color1} ${uptime} ${offset 1}
- # ${offset 20}${color slate grey}Load: ${color }$load1avg
- # CPU Info
- ${font}${color2}CPU ${hr 1}${offset 1}
- #${color a39f93}OS Name ${color} ${alignr} ${execi 86400 lscpu | grep "Model name:" | sed -r 's/Model name:\s{1,}//g'}
- #${color a39f93}CPU ${color} ${alignr} ${execi 86400 lscpu | grep "Model name" | sed -r 's/Model name:\s{1,}(.*) @ .*z\s*/\1/g'}
- #${font Open Sans:Bold:size=10}${color 4C7523}CPU ${execi 86400 lscpu | grep "Model name" | sed -r 's/Model name:\s{1,}(.*) @ .*z\s*/\1/g'} ${color} ${font}${offset 1}
- #${color a39f93}Frequency (in MHz) $color ${alignr} $freq ${offset 1}
- #${color a39f93}Frequency (in GHz) $color ${alignr} $freq_g GHz ${offset 1}
- #${color a39f93}Core 1 ${alignr} ${color}${freq_g 1}GHz ${cpu cpu0}% ${offset 1}
- #${color a39f93}Core 2 ${alignr} ${color}${freq_g 2}GHz ${cpu cpu1}% ${offset 1}
- #${color a39f93}Core 3 ${alignr} ${color}${freq_g 3}GHz ${cpu cpu2}% ${offset 1}
- #${color a39f93}Core 4 ${alignr} ${color}${freq_g 4}GHz ${cpu cpu3}% ${offset 1}
- ${offset 5}${color3}CPU Frequency ${alignr} ${color1} ${freq_g}GHz ${offset 1}
- ${offset 5}${color3}CPU Usage ${alignr} ${color1} ${cpu}% ${offset 1}
- ${offset 5}${color3}CPU Temperature ${alignr} ${color1} ${acpitemp}°C ${offset 1}
- ${offset 5}${color3}CPU Architecture ${alignr} ${color1} ${machine} ${offset 1}
- ${offset 5}${color3}Processes ${alignr} ${color1} ${processes} ${offset 1}
- ${offset 5}${color3}Running ${alignr} ${color1} ${running_processes} ${offset 1}
- #${color a39f93}Battery ${alignr} ${color} ${battery_percent}% ${offset 1}
- # Disco rigido que se esta a usar atualmente
- ${font Open Sans:Bold:size=10}${color2}HDD ${hr 1} ${color1} ${font}${offset 1}
- ${offset 5}${color3}Total ${alignr} ${color1} ${fs_size /home/} ${offset 1}
- ${offset 5}${color3}Free ${alignr} ${color1} ${fs_free /home/} ${offset 1}
- ${offset 5}${color3}Used ${alignr} ${color1} ${fs_used /home/} ${offset 1}
- # ${color a39f93}Host ${color} ${alignr} ${nodename} ${offset 1}
- # *********************************************************
- # swapbar (height) Bar that shows amount of swap in use
- # swap Amount of swap in use
- # swapmax Total amount of swap
- # swapperc Percentage of swap in use
- # *********************************************************
- ${color2}${hr 2}
- ${font}${color3}swap ${alignc} $swap / $swapmax ${alignr} Used ${swapperc}%
- ${font}${color3}RAM ${alignc} $mem / $memmax ${alignr} Used ${memperc}%
- ${font}${color3}File systems ${fs_size /} ${alignr} Used ${fs_used /}%
- # ${fs_bar 4 /} ${membar 4} ${swapbar 4} ${cpubar cpu5} ${cpugraph 50}
- # Memoria Ram que esta a ser utilisada, livre...
- # ${font Open Sans:Bold:size=10}${color 4C7523}Ram ${hr 2} ${color} ${font}${offset 1}
- # ${color} Total ${color} ${alignr} $memmax ${offset 1}
- # ${color} In use ${color} ${alignr} $mem ${offset 1}
- # ${color} Free ${color} ${alignr} $memeasyfree ${offset 1}
- # ${color} Buffers ${color} ${alignr} $buffers ${offset 1}
- # ${color} Cache ${color} ${alignr} $cached ${offset 1}
- # ${color} ${top_mem name 1}${alignr}${top_mem mem_res 1} ${offset 1}
- # ${color} ${top_mem name 2}${alignr}${top_mem mem_res 2} ${offset 1}
- # ${color} ${top_mem name 3}${alignr}${top_mem mem_res 3} ${offset 1}
- # ${color} ${top_mem name 4}${alignr}${top_mem mem_res 4} ${offset 1}
- # ${color} ${top_mem name 5}${alignr}${top_mem mem_res 5} ${offset 1}
- # Processo que estao a correr atualmente
- #${font Open Sans:Bold:size=10}${color 4C7523}PROCESSES ${hr 2}$color${font}${offset 1}
- #${font Open Sans:Bold:size=8}${color a39f93}CPU
- #${offset 15}${font Noto sans:size=8}${color EDE0FF}Name ${alignr}PID CPU% MEM%
- #${offset 15}${color FF7878}${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
- #${offset 15}${color FF7878}${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
- #${offset 15}${color FF7878}${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
- #${offset 15}${color FF7878}${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
- # VGA Name
- # ${font Open Sans:Bold:size=10}${color 4C7523}VGA ${execi 86400 lspci -nn | grep -E 'VGA|Display'} ${color} ${font}${offset 1}
- # Placa de rede Wirless
- #${font Open Sans:Bold:size=10}${color 4C7523}Wi-Fi ${hr 2} ${color} ${font}${offset 1}
- #${if_existing /proc/net/route wlan0}
- #${offset 5}Link Quality $alignr ${wireless_link_qual_perc wlan0}% ${offset 1}
- #${offset 5}ESSID $alignr (${wireless_essid wlan0}) ${offset 1}
- #${offset 5}Gateway IP $alignr (${gw_ip} ${offset 1}
- #${offset 5}Public IP $alignr (${addr wlan0}) ${offset 1}
- #${offset 5}AP's MAC address $alignr (${wireless_ap wlan0}) ${offset 1}
- #${offset 5}${color}Up Speed ${color }${upspeed wlan0}/s ${offset 1}
- #${offset 5}${upspeedgraph wlan0 10,130 000000 ffffff} ${offset 1}
- #${offset 5}${color}Down Speed: ${color }${downspeed wlan0}/s${color} ${offset 1}
- #${offset 5}${downspeedgraph wlan0 10,130 000000 ffffff} ${offset 1}
- #${endif}
- # Placa de rede RJ45
- #${if_existing /proc/net/route eth0}
- #${offset 5}Gateway IP $alignr (${gw_ip} ${offset 1}
- #${offset 5}Public IP $alignr (${addr eth0}) ${offset 1}
- #${offset 5}AP's MAC address $alignr (${wireless_ap eth0}) ${offset 1}
- #${offset 5}${color}Up: ${color }${upspeed eth0} k/s ${offset 1}
- #${offset 5}${upspeedgraph eth0 20,130 000000 ffffff} ${offset 1}
- #${offset 5}${color}Down: ${color }${downspeed eth0}k/s${color} ${offset 1}
- #${offset 5}${downspeedgraph eth0 20,130 000000 00ffff} ${offset 1}
- #${endif}
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement