Desktop environment with Conky

Guides and tutorials for various stuff. Posted by DietPi users.
tatxen

Re: Desktop environment with Conky

Post by tatxen »

My conky (and desktop)
Captura.png
Conky

Code: Select all

background yes
update_interval 2
total_run_times 0

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 6
gap_y 32
minimum_size 170 1080
maximum_width 170
own_window yes
own_window_class conky
own_window_type normal
own_window_transparent yes
own_window_argb_visual no
own_window_argb_value 250
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
alignment tr

draw_shades yes
default_shade_color 000000
draw_outline yes
draw_borders no
border_width 2
draw_graph_borders yes
short_units

override_utf8_locale yes
use_xft yes
xftfont Ubuntu Condensed :size=11
xftalpha 1.0
uppercase no

default_color eeeeee
color1 ffffff
color2 C397E5
color3 C397E5
top_name_width 15

TEXT
${goto 48}${font Ubuntu :size=22}${time %H:%M}${font}
${alignc}${color2}${time %A}${color}
${voffset 12}${execpi 3600 ~/week.sh}${font}
${alignc}${color2}${time %B %Y}${color}

${color2}${font Ubuntu Condensed :size=8}:::::::::::::::::::::::CPU::::::::::::::::::::::::::::::::::::::${color}${font}
${alignc}${font Ubuntu Condensed :size=16}${acpitemp}ºC - ${freq_g cpu}GHz${color}${font}
Core1 ${cpugraph cpu1 13 C397E5  -t}
Core2 ${cpugraph cpu2 13 C397E5  -t}
Core3 ${cpugraph cpu3 13 C397E5  -t}
Core4 ${cpugraph cpu4 13 C397E5  -t}
Carga: ${cpu cpu0}% ${cpubar 5}
Ram: ${mem} - ${memmax}${color1} ${membar 5}${color}
Swap: ${swap} - ${swapmax} ${color1}${swapbar 5}${color}
${font Ubuntu Condensed :size=8}............................. CPU ....... MEM .......
${top name 1}${goto 90}${top cpu 1}${goto 135}${top mem 1}
${top name 2}${goto 90}${top cpu 2}${goto 135}${top mem 2}
${top name 3}${goto 90}${top cpu 3}${goto 135}${top mem 3}
${top name 4}${goto 90}${top cpu 4}${goto 135}${top mem 4}${font}

${color2}${font Ubuntu Condensed :size=8}::::::::::::::::::::HDD:::::::::::::::::::::::::::::::::::::::::::${color}${font}
Home:  ${fs_used /} - ${fs_size /}${font}
${fs_bar 5 /}
Lectura               Escritura
${diskio_read mmcblk0}${goto 88}${diskio_write mmcblk0}
${diskiograph_read mmcblk0 16,83 C397E5 3 -t} ${diskiograph_write mmcblk0 16,83  C397E5 3 -t}

USB:  ${fs_used /mnt/usb_1/} - ${fs_size /mnt/usb_1/}${font}
${fs_bar 5 /mnt/usb_1/}
Lectura               Escritura
${diskio_read sda1}${goto 88}${diskio_write sda1}
${diskiograph_read sda1 16,83 C397E5 3 -t} ${diskiograph_write sda1 16,83  C397E5 3 -t}

${voffset 0}${color2}${font Ubuntu Condensed :size=8}:::::::::::::::::::::RED:::::::::::::::::::::::::::::::::::::::::::${color}${font}

WLAN0
AP: ${wireless_essid wlan0}   Brt: ${wireless_bitrate wlan0}
Señal: ${wireless_link_bar 5 wlan0}
IP: ${goto 85}${addr wlan0}
IP Publica: ${goto 85}${exec sh ip.sh}
Puerta:${goto 85}${gw_ip}
Baja ${downspeed wlan0} ${goto 90}Sube ${upspeed wlan0}
${downspeedgraph wlan0 24,83 C397E5 3 -t} ${upspeedgraph wlan0 24,83 C397E5 3 -t}
Total ${totaldown wlan0} ${goto 90}Total ${totalup wlan0}${color}
Entrante: ${tcp_portmon 1 32767 count}${alignr}Saliente: ${tcp_portmon 32768 61000 count}
${alignc}Puertos abiertos:  ${tcp_portmon 1 65535 count}
IP                           ${alignr}PORT${font Ubuntu Condensed :size=8}
${tcp_portmon 1 65535 rip 0}          ${alignr}${tcp_portmon 1 65535 rport 0}
${tcp_portmon 1 65535 rip 1}          ${alignr}${tcp_portmon 1 65535 rport 1}
${tcp_portmon 1 65535 rip 2}          ${alignr}${tcp_portmon 1 65535 rport 2} 
${tcp_portmon 1 65535 rip 3}          ${alignr}${tcp_portmon 1 65535 rport 3}
${tcp_portmon 1 65535 rip 4}          ${alignr}${tcp_portmon 1 65535 rport 4}
${tcp_portmon 1 65535 rip 5}          ${alignr}${tcp_portmon 1 65535 rport 5}
Script external IP

Code: Select all

wget http://ipinfo.io/ip -qO -
Script week day

Code: Select all

#!/bin/bash

font=("\${font Ubuntu :size=8}" "\${voffset -4}\${font Ubuntu :size=12}" "\${voffset -5}\${font Ubuntu :size=16}" "\${voffset -9}\${font Ubuntu :size=22}\${color C397E5}" "\${voffset 0}\${font Ubuntu :size=16}" "\${voffset 0}\${font Ubuntu :size=12}" "\${voffset 0}\${font Ubuntu :size=8}")
color=("" "" "" "\${color}" "" "" "")

for i in $(seq -3 3); do
echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
done
Post Reply