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.
Cytat: amator85 w Październik 03, 2024, 11:30:00 PM...
gdybym chciał coś jeszcze dodać do Wi-Fi to jaka zasada jest tego ? aby to znikało po przejściu na kabel ?
${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}$alignr${wireless_link_bar 4,175 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 = 206, minimum_height = 5,
maximum_width = 175,
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
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg
CPU ${alignc} ${freq}MHz / ${hwmon temp 1} °C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph ffffff ffffff}
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 }
${alignr}${entropy_bar 4,175}
Highest CPU $alignr CPU% MEM%
${hr 1}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
Highest MEM $alignr CPU% MEM%
${hr 1}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${font Aerial:style=Bold:pixelsize=12}FILESYSTEM ${font Snap.se:size=8}${hr 1}
Root: ${alignr}${fs_used /} / ${fs_size /} (${fs_used_perc /}%)
${fs_bar 4 /}
Home: ${alignr}${fs_used /} / ${fs_size /} (${fs_used_perc /}%)
${fs_bar 4 /home}
File System Type: ${alignr}(${fs_type})
${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}$alignr${wireless_link_bar 4,175 wlp5s0}${color}
${color ffffff}MAC Address:${alignr}${color ffffff}${wireless_ap wlp5s0}${color}
Wi-Fi Channel:${alignr}(${color ffffff}${wireless_channel wlp5s0})
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
${else}${if_existing /proc/net/route enp3s0}
${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/}
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
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}
]];
${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}$alignr${wireless_link_bar 4,175 wlp5s0}${color}
${color ffffff}MAC Address:${alignr}${color ffffff}${wireless_ap wlp5s0}${color}
Wi-Fi Channel:${alignr}(${color ffffff}${wireless_channel wlp5s0})
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
${else}${if_existing /proc/net/route enp3s0}
${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/}
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
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}
${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/}
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
]];
${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}$alignr${wireless_link_bar 4,175 wlp5s0}${color}
${color ffffff}MAC Address:${alignr}${color ffffff}${wireless_ap wlp5s0}${color}
Wi-Fi Channel:${alignr}(${color ffffff}${wireless_channel wlp5s0})
Down ${downspeed enp3s0} k/s ${alignr}Up ${upspeed enp3s0} k/s
${downspeedgraph enp3s0 25,65 ffffff ffffff} ${alignr}${upspeedgraph enp3s0 25,65 ffffff ffffff}
Total ${totaldown enp3s0} ${alignr}Total ${totalup enp3s0}
]];