Doterivanje, editovanje, razmena... conkyrc-a

Teme koje se tiču podešavanja i zanimljivosti u vezi desktop okruženja

Moderators: Sinisa, Urednik

Post Reply

Povremen korisnik
Povremen korisnik
offline

Posts: 16
Joined: 10 Feb 2012, 18:52

Post Napisano: 09 Apr 2012, 21:26


Zasto 7z arhiva?



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 438
Joined: 11 Jan 2012, 23:04
Location: Ratkovo, Srbija
Contact:

Post Napisano: 09 Apr 2012, 21:33


bilekmirko wrote:Zasto 7z arhiva?
Mahinalno, kad kreiram arhivu ta mi naj bliza. :beer:



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 438
Joined: 11 Jan 2012, 23:04
Location: Ratkovo, Srbija
Contact:

Post Napisano: 10 Apr 2012, 13:43


Ovo je modifikacija Brokerovog conky-a sa prve strane.
Dodao sam lua fajl koji je falio i neke fontove koji su bili potrebni, takodje i slicicu ;) .
brok_custom.png
brok _custom.zip
(260.56 KiB) Downloaded 244 times
Instalirajte fontove iz foldera "fontovi" (prekopirate ih u folder .fonts koji se nalazi u home direktorijumu (ako ne postoji kreirajte ga) i u konzoli pokrenete komandu fc-cache -f -v).
Fajl draw_bg.lua premestite u folder .scripts koji se nalazi u Vasem home direktorijumu (ako ne postoji kreirajte ga).
Fajl ip.sh premestite u folder .scripts koji se nalazi u Vasem home direktorijumu.
Slicicu slackware.png premestite u folder .conky u Vasem home direktorijumu (ako ne postoji kreirajte ga).
Preimenujte fajl conkyrc u .conkyrc i premestite ga u home folder.
U konzoli startujte conky.



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 438
Joined: 11 Jan 2012, 23:04
Location: Ratkovo, Srbija
Contact:

Post Napisano: 10 Apr 2012, 20:24


Lepo cuci :cheesy:
meteo_clock.png
meteo_clock.zip
(201.65 KiB) Downloaded 216 times
Ako negde zapne pitajte ;)



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 10 Apr 2012, 22:29


Kako si ga centrirao, meni ide suviše u desno :huh:
conky.jpg
A možda još i ne bi bilo loše da se proba varijanta da svaki ovaj deo isde skroz desno i da tri dela idu ispod drugog.
Umoran sam, i mrzi me sada da brljam po kodu i tražim kako se to doterava, a verujem da bi moglo.
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 438
Joined: 11 Jan 2012, 23:04
Location: Ratkovo, Srbija
Contact:

Post Napisano: 11 Apr 2012, 10:25


Doterivanje po visini i sirini ti je u conkyrc fajlovima za svaki od delova (znaci postoje 3 za ovaj conky).
U folderu config postoje tri conkyrc1, conkyrc2 i conkyrc3 u njima pronadjes deo gap_x i gap_y, gde je gap_x podesavanje po sirini ekrana, a gap_y po visini, obrati paznju i na deo, nesto kao, alignment tr ili alignment top_right taj deo ti postavlja conky na odredjen deo ekrana (gore-desno, gore-levo, dole desno, sredina etc).

Danas imam neka posla pa necu biti tu ali do veceras stizem ako nesto treba javite se.



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 11 Apr 2012, 10:29


To bi bilo to, nisam se na prvu setio da svaki, da ga nazovem deo, ima zaseban conkyrc.
Ok hvala, sada neće biti problem podesiti ga po želji. :beer:
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Prijatelj foruma
Prijatelj foruma
offline
User avatar

Posts: 2121
Joined: 08 Jun 2010, 13:28
Location: Centralna Srbija Kraljevo
Contact:

Post Napisano: 22 Jun 2012, 13:41


Jedan zanimljiv conky, dobio sam ga na LQ i neke sitnice dodao
snapshot35.jpg
.conkyrc

Code: Select all

background		        yes
update_interval			1.0
double_buffer			yes

use_xft				yes
xftfont				Droid Sans:size=9
xftalpha			1

own_window			yes
own_window_transparent	        yes
#own_window_argb_visual	        yes
own_window_type			normal
own_window_class		conky-semi
own_window_hints		undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size			190 50
draw_shades			yes
draw_outline			no
draw_borders			no
draw_graph_borders		no

default_color			white
default_shade_color		black
default_outline_color	        d9d7d6

alignment			top_right
gap_x				25
gap_y				90

no_buffers			yes

cpu_avg_samples			2

##############################################
#  Output
##############################################
TEXT
${font openlogos:size=20}${font Arial:size=15}${color #0088cc}Slackware ${color Ivory}${font openlogos:size=15}13.37${font }
${font size=6}${color slate grey}Info $hr${color }${font }

Kernel: ${alignr}$kernel ($machine)
Uptime: ${alignr}$uptime
Time: ${alignr}${time %H:%M:%S}
Date: ${alignr}${time %d.%m.%y}
User: ${alignr}$alignc${exec whoami} @ $nodename
Filesystem: $alignr${fs_type}


${font size=6}${color slate grey}CPU Usage $hr${color }${font }

Core 0:${alignr}${cpu cpu0}%                 ${freq_g cpu0} GHz
Core 1:${alignr}${cpu cpu1}%                 ${freq_g cpu1} GHz
Core 2:${alignr}${cpu cpu2}%                 ${freq_g cpu2} GHz
Core 3:${alignr}${cpu cpu3}%                 ${freq_g cpu3} GHz

${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}%

${font size=6}${color slate grey}Ram Usage $hr${color }${font }
#${hr 1}
#${alignc}MEMORY
#${hr 1}

RAM:  ${alignr}$mem  /  ${alignr}$memmax
SWAP: ${alignr}$swap  /  ${alignr}$swapmax

${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}%

${font size=6}${color slate grey}Storage $hr${color }${font }
#${hr 1}
#${alignc}STORAGE
#${hr 1}

#Filesystem:$alignr${fs_type}
${alignr}Used        Alloted
Slackware:${alignr}${fs_used /}     ${fs_size /}
Ubuntu:${alignr}${fs_used /ubuntu_home}     ${fs_size /ubuntu_home}
Hard Disk:${alignr}${fs_used /hard_disk}     ${fs_size /hard_disk}

${font size=6}${color slate grey}Network $hr${color }${font }
#${hr 1}
#${alignc}NETWORK
#${hr 1}

LAN:    $alignr${addr wlan0}
WAN:    $alignr${execi 600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
U:   ${upspeed wlan0}${alignr}${totalup wlan0}
D:   ${downspeed wlan0}${alignr}${totaldown wlan0}
#${hr 1}
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Elitni član
Elitni član
offline
User avatar

Posts: 334
Joined: 15 Jul 2007, 03:58
Location: Beograd

Post Napisano: 30 Jun 2012, 14:29


Izgled mog conky-a, neko vreme sam kombinovao svasta, ali ovo je finalni izgled, bar za sad.
Moze nekom koristiti.
conky.jpg

Code: Select all

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 230 700
maximum_width 250
raw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 8
gap_y 8
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${font DroidSans:bold:size=8}SYSTEM ${hr 2}
${font DroidSans:normal:size=8}Kernel:  ${alignr}${kernel}
Uptime:$alignr$uptime
CPU: ${cpu cpu1}% ${alignr}${cpubar 8,120 cpu}
MEM: ${memperc}% ${alignr}${membar 8,120}

${font DroidSans:bold:size=8}DISKS ${hr 2}
${font DroidSans:bold:size=8}root:
${font DroidSans:normal:size=8}${fs_used /} / ${fs_size /} $alignr ${fs_bar 8,120 /}
${font DroidSans:bold:size=8}home:
${font DroidSans:normal:size=8}${fs_used /home} / ${fs_size /home} $alignr ${fs_bar 8,120 /home}

${font DroidSans:bold:size=8}Highest CPU: ${hr 2}
${font DroidSans:normal:size=8}${top name 1}${alignr}${top_mem cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %

${font DroidSans:bold:size=8}Highest MEM: ${hr 2}
${font DroidSans:normal:size=8}${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} %

${font DroidSans:bold:size=8}NETWORK ${hr 2}
${font DroidSans:normal:size=8}IP address: $alignr ${addr eth0}

${color}Down:${color white} ${downspeed eth0} ${alignr}${color} Up:${color white} ${upspeed eth0}
${downspeedgraph eth0 20,115 ff0000 0000ff} ${alignr}${upspeedgraph eth0 20,115 ff0000 0000ff}
Down: ${totaldown eth0} ${alignr}Up: ${totalup eth0}

${font DroidSans:bold:size=8}DEADBEEF ${hr 2}
${font DroidSans:normal:size=8}${execi 10 deadbeef --nowplaying '%a'}
${font DroidSans:normal:size=8}${execi 10 deadbeef --nowplaying '%t'}

${voffset 6}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 0}${goto 40}${font Weather:size=38}${color4}y${font}${voffset -33}${offset 16}${font RadioSpace:size=34}${color3}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=HT}${font}
${voffset 0}${font Ubuntu:size=14}${color4}${alignc}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=CT}${font}
${voffset 15}${goto 20}${font ConkyWindNESW:size=41}${color3}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=BS}${font}${voffset -40}${goto 98}${font ConkyWeather:size=45}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=WF}${font}${voffset -39}${goto 188}${font MoonPhases:size=32}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=MF}${font}
${voffset 6}${goto 28}${font DroidSansFallback:bold:size=8.45}${color4}${execpi 1800 conkyForecast --location=SRXX0005 --datatype=WS  | sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 88}Feels like ${texeci 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits}${execpi 1800 conkyForecast --location=SRXX0005 --datatype=MP | sed -e 's/First.*'/'\$\{goto 182}First Qtr/g' -e 's/Last.*'/'\$\{goto 184}Last Qtr/g' -e 's/New.*'/'\$\{goto 195}New/g' -e 's/Full.*'/'\$\{goto 195}Full/g' -e 's/Waning.*'/'\$\{goto 187}Waning/g' -e 's/Waxing.*'/'\$\{goto 187}Waxing/g'}${font}
${voffset 8}${goto 36}${font DroidSans:bold:size=8.55}${color6}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=1 --shortweekday}${goto 89}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=2 --shortweekday}${goto 143}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=3 --shortweekday}${goto 197}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=4 --shortweekday}${font}
${voffset 4}${goto 25}${font ConkyWeather:size=32}${color2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${goto 25}${font DroidSans:bold:size=8.5}${color4}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=HT --hideunits --startday=1}${offset 2}/${offset 2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits --startday=1}${goto 79}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=HT --hideunits --startday=2}${offset 2}/${offset 2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits --startday=2}${goto 133}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=HT --hideunits --startday=3}${offset 2}/${offset 2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits --startday=3}${goto 187}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=HT --hideunits --startday=4}${offset 2}/${offset 2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits --startday=4}${font}
Ako mislis pobjediti, ne smijes izgubiti!



Administrator
Administrator
offline
User avatar

Posts: 2845
Joined: 01 Apr 2012, 13:50
Location: Mlečni put

Post Napisano: 09 Aug 2012, 13:37


Koristim jednostavan conky, samo .conkyrc fajl i sve providno. Sadržaj .conkyrc:

Code: Select all

background no
font Sans:size=8
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color green
alignment top_right
gap_x 12
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
uppercase yes # set to yes if you want all text to be in uppercase

TEXT
${color white}SYSTEM ${hr 1}${color}

Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime

CPU: ${alignr}${freq} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

CPU1 ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
CPU2 ${alignr}${cpu cpu2}%
${cpubar 4 cpu2}

Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Highest CPU $alignr CPU% MEM%
${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%
${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}

${color white}Filesystem ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
magacin: ${alignr}${fs_free /mnt/magacin} / ${fs_size /mnt/magacin}
${fs_bar 4 /mnt/magacin}

${color white}NETWORK ${hr 1}${color}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}
Izgled ekrana:
custom conky.png
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests