Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.
${if_existing /proc/net/route wlp5s0}${color ffffff}ESSID: ${alignr}${color ffffff}${wireless_essid wlp5s0}${color }
${color ffffffBitrate: ${alignr}${color ffffff}${wireless_bitrate wlp5s0}${color ffffff} for ${color ffffff}${wireless_freq wlp5s0}${color }
${else}${if_existing /proc/net/route enp3s0}Cable - enp3s0
Bitrate: ${alignr}${wireless_bitrate enp3s0}
${else}${if_existing /proc/net/route eno1}Połączenie kablowe
Bitrate: ${alignr}${wireless_bitrate eno1}
${color ffffff}Pobr./wysł. z 30 dni: $alignr${color ffffff}${execi 60 vnstat -d | awk '/[:digit:]\//{if($3~/M/){a+=$2} if($3~/G/){b+=$2}}END{printf "%s%.2f%s\n","", (a + b*1024)/1024, " GiB"}'}${color }/${color ffffff}${execi 60 vnstat -d | awk '/[:digit:]\//{if($6~/M/){a+=$5} if($6~/G/){b+=$5}}END{printf "%s%.2f%s\n", "", (a + b*1024)/1024, " GiB"}'}${color}
${font Aerial:style=Bold:pixelsize=12}NETWORK ${font Snap.se:size=8}${hr 1}
Hostname: $alignr$nodename
IP Address: ${alignr}${execi 10600 curl -s -m 2 http://icanhazip.com/}
${color ffffff}Interface: $alignr${color ffffff}(${color ffffff}${gw_iface}${color })
${if_existing /proc/net/route wlp5s0}${color ffffff}ESSID: ${alignr}${color ffffff}${wireless_essid wlp5s0}${color}
${color ffffff}Signal quality: ${color ffffff}${alignr}(${wireless_link_qual_perc wlp5s0}%)${color ffffff}
${color ffffff}${wireless_link_bar 4 wlp5s0}${color}
${color ffffff}MAC Address:${alignr}${color ffffff}${wireless_ap wlp5s0}${color}
Wi-Fi Channel:${alignr}(${color ffffff}${wireless_channel wlp5s0})
Down ${downspeed wlp5s0} k/s ${alignr}Up ${upspeed wlp5s0} k/s
${downspeedgraph wlp5s0 25,65 ffffff ffffff -l} ${alignr}${upspeedgraph wlp5s0 25,65 ffffff ffffff -l}
Total ${totaldown wlp5s0} ${alignr}Total ${totalup wlp5s0}
${else}${if_existing /proc/net/route enp3s0}
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff -l} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff -l}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
${else}${if_existing /proc/net/route eno1}Połączenie kablowe
Przepustowość sieci: ${alignr}${wireless_bitrate eno1}
Suma pobranych: ${alignr}${totaldown eno1}
Suma wysłanych: ${alignr}${totalup eno1}
${font :size=7}Pobieranie: ${alignr}Wysyłanie:
${downspeed eno1} ${alignr}${upspeed eno1}
${downspeedgraph eno1 17,120}$alignr${upspeedgraph eno1 17,120}
${else}${alignc}Brak połączenia z siecią ${endif}${endif}${endif}
]];
conky.config = {
background = true,
font = 'Snap.se:size=8',
font = 'Snap.se:size=8',
use_xft = true,
xftalpha = 0.1,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,sticky,below,skip_taskbar,skip_pager',
double_buffer = true,
draw_shades = true,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
minimum_width = 240, minimum_height = 5,
maximum_width = 290,
default_color = '#ffffff',
default_shade_color = '#000000',
default_outline_color = '#000000',
alignment = 'top_right',
gap_x = 10,
gap_y = 35,
no_buffers = true,
cpu_avg_samples = 2,
override_utf8_locale = true,
uppercase = false,-- set to yes if you want all text to be in uppercase
use_spacer = 'no',
};
conky.text = [[
${font Aerial:style=Bold:pixelsize=12}SYSTEM INFORMATION${font Snap.se:size=8} ${hr 1 }
System: $alignr$sysname
Kernel: $alignr$kernel
Uptime: $alignr$uptime
${font Aerial:style=Bold:pixelsize=12}PROCESSOR${font Snap.se:size=8} ${hr 1 }
${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
Frequency: ${alignc} ${freq_g}GHz / Temp: ${hwmon temp 1} °C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph ffffff ffffff}
${font Aerial:style=Bold:pixelsize=12}MEMORY${font Snap.se:size=8} ${hr 1 }
RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}
SWAP ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
${color ffffff}Entropy: ${color ffffff}${entropy_avail}${color } / ${color ffffff}${entropy_poolsize}${color } ${alignr} ${color ffffff}(${entropy_perc}%)${color }
${entropy_bar 4}
${font Aerial:style=Bold:pixelsize=12}PROCESSES${font Snap.se:size=8} ${hr 1 }
${color0}Processes:${alignr}$color $processes ${color0}Running:$color $running_processes
Load: ${alignr}$loadavg
${voffset -5}$hr
CPU USAGE ${goto 145}TOP 3 PROCESSES
NAME${goto 130} PID${goto 170}CPU%${alignr}MEM%
${voffset -5}$hr
${top name 1}${goto 120} ${top pid 1} ${goto 170}${top cpu 1} ${alignr}${top mem 1}
${top name 2}${goto 120} ${top pid 2} ${goto 170}${top cpu 2} ${alignr}${top mem 2}
${top name 3}${goto 120} ${top pid 3} ${goto 170}${top cpu 3} ${alignr}${top mem 3}
${voffset -5}$hr
MEM USAGE ${goto 145}TOP 3 PROCESSES
${color3}NAME ${goto 130} PID${goto 170}CPU%${alignr}MEM%
${voffset -5}$hr
${top_mem name 1}${goto 120} ${top_mem pid 1} ${goto 170}${top_mem cpu 1} ${alignr}${top_mem mem 1}
${top_mem name 2}${goto 120} ${top_mem pid 2} ${goto 170}${top_mem cpu 2} ${alignr}${top_mem mem 2}
${top_mem name 3}${goto 120} ${top_mem pid 3} ${goto 170}${top_mem cpu 3} ${alignr}${top_mem mem 3}
${font Aerial:style=Bold:pixelsize=12}FILESYSTEM ${font Snap.se:size=8}${hr 1}
Root: (${fs_type}) ${alignr}${fs_used /} / ${fs_size /} (${fs_used_perc /}%)
${fs_bar 4 /}
Home: (${fs_type}) ${alignr}${fs_used /} / ${fs_size /} (${fs_used_perc /}%)
${fs_bar 4 /home}
${font Aerial:style=Bold:pixelsize=12}NETWORK ${font Snap.se:size=8}${hr 1}
Hostname: $alignr$nodename
IP Address: ${alignr}${execi 10600 curl -s -m 2 http://icanhazip.com/}
${color ffffff}Interface: $alignr${color ffffff}(${color ffffff}${gw_iface}${color })
${if_existing /proc/net/route wlp5s0}${color ffffff}ESSID: ${alignr}${color ffffff}${wireless_essid wlp5s0}${color}
${color ffffff}Signal quality: ${color ffffff}${alignr}(${wireless_link_qual_perc wlp5s0}%)${color ffffff}
${color ffffff}${wireless_link_bar 4 wlp5s0}${color}
${color ffffff}MAC Address:${alignr}${color ffffff}${wireless_ap wlp5s0}${color}
Wi-Fi Channel:${alignr}(${color ffffff}${wireless_channel wlp5s0})
Down ${downspeed wlp5s0} k/s ${alignr}Up ${upspeed wlp5s0} k/s
${downspeedgraph wlp5s0 25,65 ffffff ffffff -l} ${alignr}${upspeedgraph wlp5s0 25,65 ffffff ffffff -l}
Total ${totaldown wlp5s0} ${alignr}Total ${totalup wlp5s0}
${else}${if_existing /proc/net/route enp3s0}
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff -l} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff -l}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
${else}${if_existing /proc/net/route eno1}Połączenie kablowe
Przepustowość sieci: ${alignr}${wireless_bitrate eno1}
Suma pobranych: ${alignr}${totaldown eno1}
Suma wysłanych: ${alignr}${totalup eno1}
${font :size=7}Pobieranie: ${alignr}Wysyłanie:
${downspeed eno1} ${alignr}${upspeed eno1}
${downspeedgraph eno1 17,120}$alignr${upspeedgraph eno1 17,120}
${else}${alignc}Brak połączenia z siecią ${endif}${endif}${endif}
]];