Permalänk
Medlem

conky

Hej!

har tankat och lagt in conky med infinity look. där fins de en grejj som säger ip-adress: xxx.xxx.xxx.xxx.
Iaf får inte den att funka med trådlöst för jag hittar inte filerna vart den bestämmer vart den ska hämta ip-adressen från.
men funkar utmärkt med kabel.

någon som kan hjälpa mig med detta?

tack i förhand!

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem

Du behöver ändra i conkyrc från eth0 till wlan0.

Permalänk
Medlem

Hur ser configen ut?

Den bör få informationen från wlan0.

Permalänk

http://archive09.linux.com/feature/136147

Här har du en schysst guide till allt möjligt iaf.

Visa signatur

--
Mats

Permalänk
Medlem
Skrivet av Rawrgasm:

Du behöver ändra i conkyrc från eth0 till wlan0.

hittar inget i .conkyrc som innehåller eth0. när jag söker igenom den med ctrl+f i gedit.

Rutouse, vilken av filerna vill du har en mapp som heter .conky, .lua och så klart .conkyrc.

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem

.conkyrc:

######################################################################################### # Conky Theme : Infinity # # Created by : Harshit Yadav # # Version : 1.0 # # Feel Free to distribute # # For Installation Instrcutions See Read Me # ######################################################################################## # Conky settings # background yes update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 2048 #imlib_cache_size 0 temperature_unit fahrenheit # Window specifications # own_window yes own_window_type conky own_window_transparent yes own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below border_inner_margin 0 border_outer_margin 0 ## This Resolution is set according to the sreen resolution of 1366x768 ## Adjust Accoring to yours minimum_size 1920 1080 maximum_width 1920 alignment tr gap_x 10 gap_y 55 # Graphics settings # draw_shades no draw_outline no draw_borders no draw_graph_borders no # Text settings # use_xft yes xftfont caviar dreams:size=8 xftalpha 0.5 uppercase no temperature_unit celsius default_color FFFFFF # Lua Load # lua_load ~/.lua/scripts/haunted.lua lua_draw_hook_pre clock_rings ## Adjust these fields according to the your screen size i have modded them for 1366X768 TEXT ${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -800}${time %A}${font} ${offset 720}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}% ${voffset 10}${offset 270}${color 2c2c2c}${hr 4} ${image ~/.conky/rev-eng.png} ${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /} ${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home/Rev-Eng/Solaris}/${fs_size /home/Rev-Eng/Solaris}$font ${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font ${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel ${offset 570}${voffset 5} Uptime :${uptime} ${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename} ${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5} ${offset 680}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr } ${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed } k/s ${offset 8}Up:${upspeed } k/s ${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff}

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem
Skrivet av Mejan:

Rutouse, vilken av filerna vill du har en mapp som heter .conky, .lua och så klart .conkyrc.

Menade .conkyrc

Anledning till att du inte kan se vad du har för ip-adress på ditt trådlösa, är för att du inte ber om den informationen.

ESSID: ${wireless_essid wlan0} Local IP:${addr wlan0}

Förövrigt borde din förfrågan om anslutning med kabel se ut på följande sätt.

${addr eth0}

Men bara om man vill göra det korrekt

Permalänk
Medlem

okej har kollat nu min wireless heter eth2 så jag har lagt in de på olika ställen för att få de att funka med trålöst också:

${offset 680}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth2} ${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth2} k/s ${offset 8}Up:${upspeed eth2} k/s

men nu är ju problemet att de kommer bara funka på trådlösa fins de något sätt så man kan fixa så den känner vilken av dom den är ansluten via? och därav välja de anslutna?

sedan får jag inte "speed grafen" att funka för trådlösa vet ej varför ändå koden jag hittar om de är:

${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff}

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem
Skrivet av Mejan:

men nu är ju problemet att de kommer bara funka på trådlösa fins de något sätt så man kan fixa så den känner vilken av dom den är ansluten via? och därav välja de anslutna?

Går att lösa genom en ${if_existing}-slinga.

http://ubuntuforums.org/showthread.php?t=644463 - där har du ett (googlat, så kan inte garantera att det funkar) exempel på hur det kan lösas.

Visa signatur

Desktop: AMD 3950X, 64 GB RAM, Nvidia 4070 ... (Windows 11)
Serverdesktop: AMD 5600G, 64 GB RAM (Proxmox)
Labbmiljö: Supermicro SC825 X9DRi-F 2xE5-2667v2 64GB RAM
Kamera: Canon R5, Canon RF 100-500, Laowa 100mm f/2.8, Canon RF 24-70 f/2,8

Permalänk
Medlem

ska kolla in de sedan.

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem

yes lyckades lössa med if_existing:

#ifsats1 ${if_existing /sys/class/net/eth0/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth0} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth0} k/s ${offset 8}Up:${upspeed eth0} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats2 ${else}${if_existing /sys/class/net/eth1/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth1} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth1} k/s ${offset 8}Up:${upspeed eth1} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats3 ${else}${if_existing /sys/class/net/eth2/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth2} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth2} k/s ${offset 8}Up:${upspeed eth2} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} ${endif}${endif}${endif}

nu vill jag bara att speed grafen funkar till alla 3 så är jag klar sedan, någon som har nå smart där?

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem

vill ändra mig och säga att de funkar en viss tid sedan slutar de funka kanske beror på att jag kanske tappar anslutning trådlöst?

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem
Skrivet av Mejan:

yes lyckades lössa med if_existing:

#ifsats1 ${if_existing /sys/class/net/eth0/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth0} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth0} k/s ${offset 8}Up:${upspeed eth0} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats2 ${else}${if_existing /sys/class/net/eth1/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth1} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth1} k/s ${offset 8}Up:${upspeed eth1} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats3 ${else}${if_existing /sys/class/net/eth2/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth2} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth2} k/s ${offset 8}Up:${upspeed eth2} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} ${endif}${endif}${endif}

nu vill jag bara att speed grafen funkar till alla 3 så är jag klar sedan, någon som har nå smart där?

Hur menar du med "funkar till alla 3"? Att den ska visa samtliga aktiva? I så fall, ta bort ${else}. Just nu läser den av huruvida kraven för ifsats1 är sann, och om den är sann så skippar den ifsats2 och ifsats3.

Ett par andra småtips, mest för att få lite ordning på torpet:
Kolla dina $color- och $font-satser. Båda gäller tills vidare, så du behöver inte lista dem på nytt varje rad.
Lista korrekta argument för variablerna - d.v.s. "downspeedgraph eth1" i stället för "downspeedgraph"
Personligen använder jag mig hellre av ${goto x} är ${offset x} då detta motverkar att variabler på samma rad skiftar koordinater om antalet tecken i föregående variabler, samt att det är lättare att hålla koll på koordinaterna i sig, men det finns förstås tillfällen då $offset är att föredra.

Sedan lyckades jag inte få dina slingor att fungera utan att byta if_existing-argumentet till ${if_existing /proc/net/route ethX}, men det kan ju vara något lokalt som är kajko.

Visa signatur

Desktop: AMD 3950X, 64 GB RAM, Nvidia 4070 ... (Windows 11)
Serverdesktop: AMD 5600G, 64 GB RAM (Proxmox)
Labbmiljö: Supermicro SC825 X9DRi-F 2xE5-2667v2 64GB RAM
Kamera: Canon R5, Canon RF 100-500, Laowa 100mm f/2.8, Canon RF 24-70 f/2,8

Permalänk
Medlem

asså jag vill att den bara ska visa en åtgången därav står ${else} pga jag kommer ändå aldrig vara ansluten till mer än en av dem.

jag la dom så där för jag upptäckte att även fast de står ${offset x} och ${voffset x} så påverkar ifsatserna hur den ligger annars.

men de som stör mig just nu är att typ efter ca 10-20 min så slutar de funka och blir helt tomt jag förstår inte de? :S

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem
Skrivet av Mejan:

asså jag vill att den bara ska visa en åtgången därav står ${else} pga jag kommer ändå aldrig vara ansluten till mer än en av dem.

Ah, men då förstår jag fortfarande inte vad du menade med "funkar till alla 3" ... Men, men ...

Skrivet av Mejan:

jag la dom så där för jag upptäckte att även fast de står ${offset x} och ${voffset x} så påverkar ifsatserna hur den ligger annars.

Du lade vilka hur, och vad är 'den'?

Skrivet av Mejan:

men de som stör mig just nu är att typ efter ca 10-20 min så slutar de funka och blir helt tomt jag förstår inte de? :S

Om du startar conky från konsolen, får du något felmeddelande när den krashar som kan hjälpa oss att hjälpa dig hitta en lösning? Vill du ha hjälp får du bjuda till och ge oss lite mer information än bara "det slutar funka". En bra start kan vara att ersätta alla pronomen med det substantiv du syftar på. Ett annat att posta samtliga config-filer i sin helhet så vi vid behov kan reproducera felet.
Jämför det med att fråga "varför startar inte min bil" på ett forum. Det kan vara allt från att du inte vridit om nyckeln till att någon kört över bilen med en stridsvagn.

Visa signatur

Desktop: AMD 3950X, 64 GB RAM, Nvidia 4070 ... (Windows 11)
Serverdesktop: AMD 5600G, 64 GB RAM (Proxmox)
Labbmiljö: Supermicro SC825 X9DRi-F 2xE5-2667v2 64GB RAM
Kamera: Canon R5, Canon RF 100-500, Laowa 100mm f/2.8, Canon RF 24-70 f/2,8

Permalänk
Medlem

haha får ursäkta mina dåliga förklaringar... ja de du sa om de som var innom i if_exsting så la jag in allt som har med netverk att göra i där när du sa att dom inte behövdes där pga dom styrs ej av eth1 osv.. men jag la in de två nerdersta raderna inom if_exsting. för att annars så hoppa dom ner en eller två rader beronde på vilken if_exsiting som kördes.

de jag menar med "funka alla 3" är den lyckas starta oavsätt vilken av dom som är igång.

ska testa starta i terminalen nu.

.conkyrc:

######################################################################################### # Conky Theme : Infinity # # Created by : Harshit Yadav # # Version : 1.0 # # Feel Free to distribute # # For Installation Instrcutions See Read Me # ######################################################################################## # Conky settings # background yes update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 2048 #imlib_cache_size 0 temperature_unit fahrenheit # Window specifications # own_window yes own_window_type conky own_window_transparent yes own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below border_inner_margin 0 border_outer_margin 0 ## This Resolution is set according to the sreen resolution of 1366x768 ## Adjust Accoring to yours minimum_size 1920 1080 maximum_width 1920 alignment tr gap_x 10 gap_y 55 # Graphics settings # draw_shades no draw_outline no draw_borders no draw_graph_borders no # Text settings # use_xft yes xftfont caviar dreams:size=8 xftalpha 0.5 uppercase no temperature_unit celsius default_color FFFFFF # Lua Load # lua_load ~/.lua/scripts/haunted.lua lua_draw_hook_pre clock_rings ## Adjust these fields according to the your screen size i have modded them for 1366X768 TEXT ${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -800}${time %A}${font} ${offset 720}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}% ${voffset 10}${offset 270}${color 2c2c2c}${hr 4} ${image ~/.conky/rev-eng.png} ${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /} ${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home/Rev-Eng/Solaris}/${fs_size /home/Rev-Eng/Solaris}$font ${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font ${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel ${offset 570}${voffset 5} Uptime :${uptime} ${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename} ${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5} #ifsats1 ${if_existing /sys/class/net/eth0/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth0} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth0} k/s ${offset 8}Up:${upspeed eth0} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats2 ${else}${if_existing /sys/class/net/eth1/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth1} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth1} k/s ${offset 8}Up:${upspeed eth1} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} #ifsats3 ${else}${if_existing /sys/class/net/eth2/operstate up} ${offset 700}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr eth2} ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed eth2} k/s ${offset 8}Up:${upspeed eth2} k/s ${offset 725}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count} ${offset 700}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph : ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph 32,150 000000 ffffff} ${color #000000}${upspeedgraph 32,150 000000 ffffff} ${endif}${endif}${endif}

time:

use_xft yes xftfont 123:size=8 xftalpha 0.1 update_interval 1 total_run_times 0 own_window no own_window_type override own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager double_buffer yes minimum_size 250 5 maximum_width 500 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color white default_shade_color red default_outline_color green alignment top_left gap_x 60 gap_y 300 no_buffers yes uppercase no cpu_avg_samples 2 net_avg_samples 1 override_utf8_locale yes use_spacer yes TEXT ${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${offset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -148}${time %A}${font} ${voffset 1}${offset 12}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%

cpu:

# ############ # # - cpu: - # # ############ # (created 09-11-2010 by Ken Berns) #(For questions and suggestions -> ken.berns@yahoo.de) # ###################### # - Conky settings - # ###################### background no update_interval 3 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 10240 imlib_cache_size 0 ############################# # - Window specifications - # ############################# own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 180 own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_inner_margin 0 border_outer_margin 0 minimum_size 120 150 maximum_width 120 alignment tl gap_x 270 gap_y 330 ######################### # - Graphics settings - # ######################### draw_shades no draw_outline no draw_borders no draw_graph_borders no ##################### # - Text settings - # ##################### use_xft yes xftfont Santana:size=10 xftalpha 0.8 uppercase no default_color FFFFFF ############ # - Code - # ############ TEXT ${font Santana:size 12:style=Bold}CPU ${alignr}$cpu%${font} ${top name 1} ${alignr}${top cpu 1} ${top name 2} ${alignr}${top cpu 2} ${top name 3} ${alignr}${top cpu 3} ${top name 4} ${alignr}${top cpu 4} ${top name 5} ${alignr}${top cpu 5}

mail:

# ############# # # - mail: - # # ############# # (created 09-11-2010 by Ken Berns) #(For questions and suggestions -> ken.berns@yahoo.de) # ###################### # - Conky settings - # ###################### background no update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 10240 imlib_cache_size 0 ##################### # - Text settings - # ##################### use_xft yes xftfont Santana:size=10 xftalpha 0.8 uppercase no ############################# # - Window specifications - # ############################# own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 180 own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_inner_margin 0 border_outer_margin 0 alignment top_left gap_x 287 gap_y 260 minimum_size 182 0 maximum_width 182 default_bar_size 60 8 ######################### # - Graphics settings - # ######################### draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color FFFFFF ############ # - Code - # ############ TEXT ${font Santana:size=12}New Mails: ${color #ffffff}${font Santana:style=bold:size=12}${pop3_unseen [POP3_SERVER] [LOGIN_NAME] [PASSWORT]}

mem:

# ############ # # - mem: - # # ############ # (created 09-11-2010 by Ken Berns) #(For questions and suggestions -> ken.berns@yahoo.de) ####################### # - Conky settings - # ###################### background no update_interval 3 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 10240 imlib_cache_size 0 ############################# # - Window specifications - # ############################# own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 180 own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_inner_margin 0 border_outer_margin 0 minimum_size 160 100 maximum_width 160 alignment tl gap_x 30 gap_y 360 ######################### # - Graphics settings - # ######################### draw_shades no draw_outline no draw_borders no draw_graph_borders no ##################### # - Text settings - # ##################### use_xft yes xftfont Santana:size=10 xftalpha 0.8 uppercase no default_color FFFFFF ############ # - Code - # ############ TEXT ${font Santana:size 12:style=Bold}RAM ${alignr}$memperc%${font} ${top_mem name 1} ${alignr}${top_mem mem 1} ${top_mem name 2} ${alignr}${top_mem mem 2} ${top_mem name 3} ${alignr}${top_mem mem 3} ${top_mem name 4} ${alignr}${top_mem mem 4} ${top_mem name 5} ${alignr}${top_mem mem 5}

rings:

# ############## # # - rings: - # # ############## # (created 09-11-2010 by Ken Berns) #(For questions and suggestions -> ken.berns@yahoo.de) # ###################### # - Conky settings - # ###################### background no update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 10240 imlib_cache_size 0 ############################# # - Window specifications - # ############################# own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 180 own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_inner_margin 0 border_outer_margin 0 minimum_size 1024 300 maximum_width 1440 alignment tl gap_x 0 gap_y 79 ######################### # - Graphics settings - # ######################### draw_shades no draw_outline no draw_borders no draw_graph_borders no ##################### # - Text settings - # ##################### use_xft yes xftfont Santana:size=18 xftalpha 0.8 uppercase no default_color FFFFFF ################ # - LUA Load - # ################ lua_load ~/.bin/conky/clock_rings.lua lua_draw_hook_pre clock_rings ############ # - Code - # ############ TEXT ${font Santana:size=12:style=Bold}root: ${font Santana:size=12}${fs_used /}/${fs_size /} ${font Santana:size=12:style=Bold}home: ${font Santana:size=12}${fs_used /home}/${fs_size /home}$font ${voffset 105}${goto 123}${font Santana:size=24:style=Bold}${time %H:%M}${voffset -9}${font Santana:style=Bold:size=12}${time %p}${font} ${voffset -27}${goto 224}${hr 2} ${voffset -70}${goto 278}${cpugraph 50,285 d5dcde ffffff} ${alignr}${font Santana:style=Bold:size=13}${voffset -17}${goto 287}${time %A the %d. %B %Y}

weather:

# ################ # # - weather: - # # ################ # (created 09-11-2010 by Ken Berns) #(For questions and suggestions -> ken.berns@yahoo.de) # ###################### # - Conky settings - # ###################### background no update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes text_buffer_size 10240 imlib_cache_size 0 ##################### # - Text settings - # ##################### use_xft yes xftfont Santana:size=10 xftalpha 0.8 uppercase no ############################# # - Window specifications - # ############################# own_window_class Conky own_window yes own_window_type normal own_window_argb_visual yes own_window_argb_value 180 own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager border_inner_margin 0 border_outer_margin 0 alignment top_left gap_x 570 gap_y 130 minimum_size 182 0 #maximum_width 182 default_bar_size 60 8 ######################### # - Graphics settings - # ######################### draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color FFFFFF ############ # - Code - # ############ TEXT ${execpi 1800 conkyForecast --location=[WEATHER_ID] --metrespersecond --template=~/.bin/conky/conkyForecast.template}

hounted.lua:

--[[ Infinity by Harshit original by someone i can't remeber the name This script draws the left rings of the screen that is with the clock To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua): lua_load ~/scripts/haunted.lua lua_draw_hook_pre ring_stats Changelog: + v1.0 -- Original release (07/06/2012) ]] settings_table = { { -- Edit this table to customise your rings. -- You can create more rings simply by adding more elements to settings_table. -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'. name='time', -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''. arg='%I.%M', -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100. max=12, -- "bg_colour" is the colour of the base ring. bg_colour=0xffffff, -- "bg_alpha" is the alpha value of the base ring. bg_alpha=0.1, -- "fg_colour" is the colour of the indicator part of the ring. fg_colour=0xffffff, -- "fg_alpha" is the alpha value of the indicator part of the ring. fg_alpha=0.2, -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window. x=165, y=170, -- "radius" is the radius of the ring. radius=50, -- "thickness" is the thickness of the ring, centred around the radius. thickness=5, -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative. start_angle=0, -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. end_angle=360 }, { name='time', arg='%M.%S', max=60, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0x4a89a7, fg_alpha=0.4, x=165, y=170, radius=56, thickness=5, start_angle=0, end_angle=360 }, { name='time', arg='%S', max=60, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0xe83737, fg_alpha=0.6, x=165, y=170, radius=62, thickness=5, start_angle=0, end_angle=360 }, { name='cpu', arg='cpu1', max=100, bg_colour=0xffffff, bg_alpha=0, fg_colour=0xffffff, fg_alpha=0.1, x=165, y=170, radius=70, thickness=5, start_angle=60, end_angle=120 }, { name='battery_percent', arg='BAT1', max=100, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0xebff46, fg_alpha=0.6, x=165, y=170, radius=72, thickness=11, start_angle=122, end_angle=210 }, { name='memperc', arg='', max=100, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0x46a646, fg_alpha=0.8, x=165, y=170, radius=83.5, thickness=8, start_angle=122, end_angle=210 }, { name='time', arg='%d', max=31, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0xebff46, fg_alpha=0.8, x=165, y=170, radius=70, thickness=5, start_angle=212, end_angle=360 }, { name='time', arg='%m', max=12, bg_colour=0xffffff, bg_alpha=0.1, fg_colour=0xf4732d, fg_alpha=0.8, x=165, y=170, radius=76, thickness=5, start_angle=212, end_angle=360 }, { name='memperc', arg='%m', max=100, bg_colour=0xb7b7b7, bg_alpha=0.5, fg_colour=0x2c2c2c, fg_alpha=1.0, x=165, y=170, radius=120, thickness=17, start_angle=-90, end_angle=30 }, { name='', arg='', max=100, bg_colour=0xb7b7b7, bg_alpha=0.2, fg_colour=0x2c2c2c, fg_alpha=1.0, x=165, y=170, radius=116, thickness=17, start_angle=82, end_angle=180 }, { name='fs_used_perc', arg='/home', max=100, bg_colour=0xffffff, bg_alpha=0.5, fg_colour=0xffffff, fg_alpha=0.6, x=165, y=170, radius=95, thickness=5, start_angle=0, end_angle=90 }, } clock_r=125 clock_x=165 clock_y=170 clock_colour=0xffffff clock_alpha=0.5 show_seconds=true require 'cairo' function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end function draw_ring(cr,t,pt) local w,h=conky_window.width,conky_window.height local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle'] local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha'] local angle_0=sa*(2*math.pi/360)-math.pi/2 local angle_f=ea*(2*math.pi/360)-math.pi/2 local t_arc=t*(angle_f-angle_0) cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f) cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) cairo_set_line_width(cr,ring_w) cairo_stroke(cr) cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc) cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) cairo_stroke(cr) end function draw_clock_hands(cr,xc,yc) local secs,mins,hours,secs_arc,mins_arc,hours_arc local xh,yh,xm,ym,xs,ys secs=os.date("%S") mins=os.date("%M") hours=os.date("%I") secs_arc=(2*math.pi/60)*secs mins_arc=(2*math.pi/60)*mins+secs_arc/60 hours_arc=(2*math.pi/12)*hours+mins_arc/12 xh=xc+0.7*clock_r*math.sin(hours_arc) yh=yc-0.7*clock_r*math.cos(hours_arc) cairo_move_to(cr,xc,yc) cairo_line_to(cr,xh,yh) cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND) cairo_set_line_width(cr,5) cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha)) cairo_stroke(cr) xm=xc+clock_r*math.sin(mins_arc) ym=yc-clock_r*math.cos(mins_arc) cairo_move_to(cr,xc,yc) cairo_line_to(cr,xm,ym) cairo_set_line_width(cr,3) cairo_stroke(cr) if show_seconds then xs=xc+clock_r*math.sin(secs_arc) ys=yc-clock_r*math.cos(secs_arc) cairo_move_to(cr,xc,yc) cairo_line_to(cr,xs,ys) cairo_set_line_width(cr,1) cairo_stroke(cr) end end function conky_clock_rings() local function setup_rings(cr,pt) local str='' local value=0 str=string.format('${%s %s}',pt['name'],pt['arg']) str=conky_parse(str) value=tonumber(str) if value == nil then value = 0 end pct=value/pt['max'] draw_ring(cr,pct,pt) end if conky_window==nil then return end local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height) local cr=cairo_create(cs) local updates=conky_parse('${updates}') update_num=tonumber(updates) if update_num>5 then for i in pairs(settings_table) do setup_rings(cr,settings_table[i]) end end draw_clock_hands(cr,clock_x,clock_y) end --[[ RING WIDGET ]] --[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle): "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'. "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''. "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100. "bg_colour" is the colour of the base ring. "bg_alpha" is the alpha value of the base ring. "fg_colour" is the colour of the indicator part of the ring. "fg_alpha" is the alpha value of the indicator part of the ring. "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window. "radius" is the radius of the ring. "thickness" is the thickness of the ring, centred around the radius. "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative. "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]] function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea) local function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end local function draw_ring(pct) local angle_0=sa*(2*math.pi/360)-math.pi/2 local angle_f=ea*(2*math.pi/360)-math.pi/2 local pct_arc=pct*(angle_f-angle_0) -- Draw background ring cairo_arc(cr,xc,yc,r,angle_0,angle_f) cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) cairo_set_line_width(cr,t) cairo_stroke(cr) -- Draw indicator ring cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc) cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) cairo_stroke(cr) end local function setup_ring() local str = '' local value = 0 str = string.format('${%s %s}', name, arg) str = conky_parse(str) value = tonumber(str) if value == nil then value = 0 end pct = value/max draw_ring(pct) end local updates=conky_parse('${updates}') update_num=tonumber(updates) if update_num>5 then setup_ring() end end --[[ END RING WIDGET ]]

Visa signatur

Смерть -это решение всех проблем. Нет человека - нет проблемы
Comp1: Ubuntu 16.04 Comp2: Arch Linux
Comp3: Ubuntu Server 16.04 Comp4: Centos 6.5
Comp5: Linux mint 16 Comp6: Raspberry pi (olika OS hela tiden)
Phone: Motorola Google Nexus 6

Permalänk
Medlem

Hej !

bild pa min conky: http://crystalise.tw/stuff/conky.png

Hur kan jag minska den enorma spacingen mellan varje rad ?

Min conkyrc:

# Use Xft? use_xft yes xftfont DejaVu Sans:size=8 xftalpha 0.8 text_buffer_size 2048 # Update interval in seconds update_interval 1 # This is the number of times Conky will update before quitting. # Set to zero to run forever. total_run_times 0 # Create own window instead of using desktop (required in nautilus) own_window yes own_window_transparent yes own_window_type override #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 182 0 maximum_width 182 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 0 # border margins border_margin 5 # border width border_width 1 # Default colors and also border colors default_color white #default_shade_color black #default_outline_color white own_window_colour white # Text alignment, other possible values are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text # same thing as passing -x at command line gap_x 30 gap_y 19 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase no # number of cpu samples to average # set to 1 to disable averaging cpu_avg_samples 2 # number of net samples to average # set to 1 to disable averaging net_avg_samples 2 # Force UTF8? note that UTF8 support required XFT override_utf8_locale yes # Add spaces to keep things from moving about? This only affects certain objects. use_spacer none TEXT SYSTEM ${hr 2} ${goto 6}${voffset 6}${image /usr/bin/mintlogo.png -p 0,24 -s 28x28}${goto 36}${voffset -18}${pre_exec cat /etc/issue.net} $machine ${goto 36}Kernel: ${kernel} ${hr 2} ${goto 6}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60} ${goto 6}${voffset 4}${font StyleBats:size=16}A${font}${voffset -4}${goto 32}CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60} ${goto 6}${voffset 4}${font StyleBats:size=16}g${font}${voffset -4}${goto 32}Memory: ${mem} ${alignr}${membar 8,60} ${goto 6}${voffset 4}${font StyleBats:size=16}x${font}${voffset -4}${goto 32}Disk: ${diskio}${alignr}${diskiograph 8,60 F57900 FCAF3E} ${goto 6}${voffset 4}${font StyleBats:size=16}j${font}${voffset -4}${goto 32}Swap: $swapperc% ${alignr}${swapbar 8,60} ${goto 4.5}${voffset 2}${font Poky:size=15}y${font}${voffset -6}${goto 32}HDD temperature:${alignr}${color #FCAF3E}${exec hddtemp /dev/sda -n --unit=C} °C$color ${goto 6}${voffset 4}${font StyleBats:size=16}q${font}${voffset -4}${goto 32}Uptime: ${alignr}${uptime} ${goto 6}${voffset 4}${font StyleBats:size=16}k${font}${voffset -4}${goto 32}Processes: ${alignr}$processes ($running_processes running) ${goto 7.5}${voffset 4}${font Poky:size=15}a${font}${goto 32}${voffset -10}Highest: ${alignr 13}CPU${alignr}RAM ${goto 32}${voffset -5.5}${hr 1} ${voffset -1}${goto 32}${top name 1} ${goto 124}${top cpu 1}${alignr }${top mem 1} ${voffset -1}${goto 32}${top name 2} ${goto 124}${top cpu 2}${alignr }${top mem 2} ${voffset -1}${goto 32}${top name 3} ${goto 124}${top cpu 3}${alignr }${top mem 3} ${voffset -1}${goto 32}${top name 4} ${goto 124}${top cpu 4}${alignr }${top mem 4} Time & Date ${hr 2} ${font Arial Black:size=26}${alignc}${time %H:%M}${font} ${alignc}${time %A, %B %d, %Y} HDD ${hr 2} ${font Poky:size=16}y${font} ${voffset -5}File System ${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /} ${font Poky:size=16}y${font} ${voffset -5}Home ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home} Network ${hr 2} ${if_up wlan0} ${font Poky:size=14}Y${font}${goto 32}${voffset -8}SSID: ${wireless_essid wlan0} ${goto 32}Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0} ${voffset 4}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totalup wlan0} ${voffset 4}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totaldown wlan0} ${voffset 4}${font Poky:size=13}w${font}${goto 32}${voffset -8}Local IP: ${alignr}${addr wlan0} ${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail} # |--ETH0 ${else}${if_up eth0} ${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed eth0}${font} ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totalup eth0} ${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed eth0}${font} ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totaldown eth0} ${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr eth0} ${goto 32}Public IP: ${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail} # |--PPP0 ${endif}${else}${if_up ppp0} ${voffset -13}${font VariShapes Solid:size=14}q${font}${goto 32}${voffset -6}Up: ${upspeed ppp0}${font} ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totalup ppp0} ${voffset -2}${font VariShapes Solid:size=14}Q${font}${goto 32}${voffset -6}Down: ${downspeed ppp0}${font} ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E} ${goto 32}Total: ${totaldown ppp0} ${voffset -2}${font Poky:size=13}w${font}${goto 32}${voffset -4}Local IP: ${alignr}${addr ppp0} ${endif}${else}${voffset 4}${font PizzaDude Bullets:size=12}4${font}${goto 32}Network Unavailable${endif}${endif}

Visa signatur

// Lian Li PC-888 // i7 4790s // MSI vega 56 8gb O.C. // 16GB //

Permalänk
Medlem
Skrivet av yacuzhi:

Hej !

bild pa min conky: http://crystalise.tw/stuff/conky.png

Hur kan jag minska den enorma spacingen mellan varje rad ?

Justera ${voffset}. Negativt värde justerar uppåt, positivt nedåt. "Spacingen" uppstår, som du säkert redan vet, på grund av att du har olika storlek på teckensnitten. Conky skapar mellanrummet mellan raderna utifrån den största teckensnittsstorleken, så om du inte vill justera det för ikonteckensnittet så är det inte mycket annat än voffset som gäller.

Visa signatur

Desktop: AMD 3950X, 64 GB RAM, Nvidia 4070 ... (Windows 11)
Serverdesktop: AMD 5600G, 64 GB RAM (Proxmox)
Labbmiljö: Supermicro SC825 X9DRi-F 2xE5-2667v2 64GB RAM
Kamera: Canon R5, Canon RF 100-500, Laowa 100mm f/2.8, Canon RF 24-70 f/2,8

Permalänk
Medlem
Skrivet av Crazy Ferret:

Justera ${voffset}. Negativt värde justerar uppåt, positivt nedåt. "Spacingen" uppstår, som du säkert redan vet, på grund av att du har olika storlek på teckensnitten. Conky skapar mellanrummet mellan raderna utifrån den största teckensnittsstorleken, så om du inte vill justera det för ikonteckensnittet så är det inte mycket annat än voffset som gäller.

tack for tipsen, mycket pillandes blir det men det fungerar ^_^

Visa signatur

// Lian Li PC-888 // i7 4790s // MSI vega 56 8gb O.C. // 16GB //