Našao sam zanimljiv Conky ali me muči što je podešen za wlan, meni treba konfiguracija za lan.
Evo tog dela:
TEXT
${if_existing /proc/net/route enp8s0}${voffset 25}${GOTO 50}${font}Network
${GOTO 50}${font}Public ip: ${font Monofur:size=8}${texeci 3600 wget -qO - http://cfajohnson.com/ipaddr.cgi}
${voffset 85}${GOTO 50}${font}Recieve: ${font Monofur:size=8}${downspeed enp8s0}${GOTO 200}${font}Send: ${font Monofur:size=8}${upspeed enp8s0}
${image ~/.conkyconfig/img/networkhigh.png -p 0,15 -s 45x45}${else}${if_existing /proc/net/route wlp2s0}${voffset 25}${GOTO 50}${font}Network
${GOTO 50}${font}Public ip: ${font Monofur:size=8}$${texeci 3600 wget -qO - http://cfajohnson.com/ipaddr.cgi}${GOTO 200}${font}Sig: ${font Monofur:size=8}${wireless_link_qual_perc wlp2s0}%
${voffset 85}${GOTO 50}${font}Recieve: ${font Monofur:size=8}${downspeed wlp2s0}${GOTO 200}${font}Send: ${font Monofur:size=8}${upspeed wlp2s0}
${if_match "${wireless_link_qual_perc wlp2s0}"<"33"}${image ~/.conkyconfig/img/networklow.png -p 0,15 -s 45x45}${else}${if_match "${wireless_link_qual_perc wlp2s0}"<"66"}${image ~/.conkyconfig/img/networkmid.png -p 0,15 -s 45x45}${else}${image ~/.conkyconfig/img/networkhigh.png -p 0,15 -s 45x45}${endif}${endif}${else}${voffset 27}${GOTO 50}${font}Network
${GOTO 50}${font}No connection
${image ~/.conkyconfig/img/nonetwork.png -p 0,15 -s 45x45}${endif}${endif}
Sad, meni ispisuje No connection. Ako promenim samo enp8s0 sa enp0s8 (kod mene je tako) prikazuje nešto, ali ne sve, pravi mi problem ovaj deo za lan, može neko da mi pojasni kako da prepravim ovo "wireless_link_qual_perc wlp2s0"?
|