archive:conky
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
archive:conky [2023-06-12 14:46] – removed - external edit (Unknown date) 127.0.0.1 | archive:conky [2023-06-12 14:46] (current) – ↷ Page moved from apps:conky to archive:conky jens | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP round alert> | ||
+ | The content of this page is no longer maintained and could be outdated soon or already is. The reasons could be various, like this information became obsolete or there is by now a better way to handle the information on this page. This page will be retained here for archiving reasons. | ||
+ | </ | ||
+ | ====== Conky ====== | ||
+ | In case you are interested, here's my '' | ||
+ | |||
+ | {{ : | ||
+ | The screenshot on the right is taken from a running Conky instance that uses the configuration file below. | ||
+ | |||
+ | For a transparent background you need a compositing Window Manager. Most modern Window Managers support compositing though. | ||
+ | |||
+ | A couple of options are commented out, you may need to experiment with them to get Conky behave as you want. Especially the window types and (CPU) temperatures are important. | ||
+ | |||
+ | For the harddisk temperature your HDD needs a temperature sensor (some SSD's don't have one), '' | ||
+ | |||
+ | A comprehensive list of [[http:// | ||
+ | |||
+ | ===== Configuration file .conkyrc ===== | ||
+ | As of Conky 1.10 the configuration file is an actual LUA script. | ||
+ | |||
+ | <file lua conkyrc-lua> | ||
+ | ---------- Conky config by DeskTux | ||
+ | ------ General Settings | ||
+ | conky.config = { | ||
+ | -- Positioning | ||
+ | alignment = ' | ||
+ | gap_x = 10, | ||
+ | gap_y = 10, | ||
+ | |||
+ | -- Colours | ||
+ | default_color = ' | ||
+ | default_outline_color = ' | ||
+ | default_shade_color = ' | ||
+ | |||
+ | -- Font | ||
+ | use_xft = true, | ||
+ | --xftfont = ' | ||
+ | font = ' | ||
+ | draw_shades = true, | ||
+ | draw_outline = false, | ||
+ | uppercase = false, | ||
+ | |||
+ | -- Program properties | ||
+ | background = false, | ||
+ | draw_borders = false, | ||
+ | border_inner_margin = 20, | ||
+ | border_outer_margin = 0, | ||
+ | border_width = 1, | ||
+ | maximum_width = 480, | ||
+ | double_buffer = true, | ||
+ | stippled_borders = 0, | ||
+ | update_interval = 2.0, | ||
+ | use_spacer = ' | ||
+ | |||
+ | -- Window properties | ||
+ | own_window = true, | ||
+ | --own_window_type = ' | ||
+ | own_window_type = ' | ||
+ | own_window_transparent = true, | ||
+ | own_window_argb_visual = true, | ||
+ | -- This value can be between 0 and 255. 0 = transparent and 255 = opaque., | ||
+ | own_window_argb_value = 128, | ||
+ | |||
+ | -- Graph properties | ||
+ | draw_graph_borders = true, | ||
+ | no_buffers = true, | ||
+ | cpu_avg_samples = 2, | ||
+ | net_avg_samples = 2, | ||
+ | show_graph_scale = false, | ||
+ | show_graph_range = false | ||
+ | } | ||
+ | |||
+ | ------ Sensors | ||
+ | --[[ | ||
+ | Unfortunately, | ||
+ | So I will accumulate them here. | ||
+ | |||
+ | -- System | ||
+ | If you want to show your battery life, include these under the ' | ||
+ | |||
+ | ${color white}Battery: | ||
+ | $battery_bar | ||
+ | |||
+ | -- Sensors | ||
+ | Have a look at / | ||
+ | a base for experimenting. If there are 4 files, you can have 4x4 combinations | ||
+ | starting with 00, 01, 02, 03, 10, 11, 12 and so on all the way up to 33. | ||
+ | lm-sensors should be installed and configured. | ||
+ | |||
+ | -- SWAP | ||
+ | If you have a swap partition (which I only have on servers) include these in | ||
+ | the ' | ||
+ | |||
+ | ${color white}Swap: | ||
+ | $swapbar | ||
+ | |||
+ | -- HDD Temperature | ||
+ | To have the hddtemp sensors work make sure / | ||
+ | |||
+ | -- Network with Wifi | ||
+ | These can be put into the ' | ||
+ | |||
+ | ${color white}WLAN IP: | ||
+ | ${color white}WLAN Signal: | ||
+ | WLAN ${hr 1} | ||
+ | ${color white}Down: $color${downspeed wlan0}/s ${color white}Total: | ||
+ | ${color white}${downspeedgraph wlan0 32,230 40c040 ffffff -t} $alignr${color white}${upspeedgraph wlan0 32,230 40c040 ffffff -t} | ||
+ | |||
+ | -- Syslog | ||
+ | For the syslog section to work your user should be able to read the syslog. | ||
+ | In Debian adding that user to the ' | ||
+ | ]] | ||
+ | |||
+ | conky.text = [[ | ||
+ | ${alignc}${color white}${font Liberation Mono: | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${alignc}${font Liberation Mono: | ||
+ | ${alignc}${font Liberation Mono: | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${color white}Host: $alignr$color$nodename | ||
+ | ${color white}Uptime: | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${color white}${cpugraph cpu0 32,480 40c040 ffffff -t} | ||
+ | ${color white}CPU0: | ||
+ | ${color white}CPU1: | ||
+ | ${color white}CPU2: | ||
+ | ${color white}CPU3: | ||
+ | ${color white}CPU4: | ||
+ | ${color white}CPU5: | ||
+ | ${color white}CPU6: | ||
+ | ${color white}CPU7: | ||
+ | ${color white}Clock (GHz): | ||
+ | ${color white}CPU Socket Temperature: | ||
+ | ${color white}Mainboard Temperature: | ||
+ | ${color white}CPU Fan: | ||
+ | ${color white}Chassis Fan 1: | ||
+ | ${color white}Chassis Fan 2: | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${color white}RAM: | ||
+ | $memperc% $membar | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${font mono: | ||
+ | $font$color${fs_used_perc /}% ${fs_bar /} | ||
+ | ${color white}${diskiograph /dev/sda5 32,480 40c040 ffffff -t} | ||
+ | ${font mono: | ||
+ | $font$color${fs_used_perc /home}% ${fs_bar /home} | ||
+ | ${color white}${diskiograph /dev/sdb1 32,480 40c040 ffffff -t} | ||
+ | ${color white}/ | ||
+ | ${color white}/ | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${color white}LAN IP: | ||
+ | ${color white}Gateway: | ||
+ | ${color white}Primary DNS: | ||
+ | ${color white}External IP: | ||
+ | LAN ${hr 1} | ||
+ | ${color white}Down: $color${downspeed enp2s0}/s ${color white}Total: | ||
+ | ${color white}${downspeedgraph enp2s0 32,230 40c040 ffffff -t} $alignr${color white}${upspeedgraph enp2s0 32,230 40c040 ffffff -t} | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | ${color white}Name $alignr PID CPU% MEM% | ||
+ | ${color red}${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1} | ||
+ | $color${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2} | ||
+ | $color${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3} | ||
+ | $color${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4} | ||
+ | $color${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5} | ||
+ | |||
+ | ${color white}${font sans-serif: | ||
+ | $color${tail / | ||
+ | ]] | ||
+ | </ | ||
+ | |||
+ | ===== publicip.sh ===== | ||
+ | You need to place this little script in '' | ||
+ | |||
+ | <file bash publicip.sh> | ||
+ | #!/bin/sh | ||
+ | # Get the current external IP(v4) address | ||
+ | # Exchange " | ||
+ | wget -qO- http:// | ||
+ | </ |