Doterivanje, editovanje, razmena... conkyrc-a

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

Moderators: Sinisa, Urednik

Post Reply

Prijatelj foruma
Prijatelj foruma
offline
User avatar

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

Post Napisano: 12 Oct 2012, 15:11


Ha, ha, ha, dobar si za sat. :grin: :beer:

Izvoli

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}14.0${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 /media/Ubuntu_home}     ${fs_size /media/Ubuntu_home}
Hard Disk:${alignr}${fs_used /media/Hard_disk}     ${fs_size /media/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}



Administrator
Administrator
offline
User avatar

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

Post Napisano: 12 Oct 2012, 15:23


Kao što sam i očekivao, tu komandu za dobijanje ip adrese već imam. Mislio sam da ima neka bolja, koju mogu da dobijem od sistema :)
Kako sam krenuo sa ovim conky podešavanjima mogao bih uskoro i neki tutorial da napravim :D
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

Posts: 845
Joined: 25 May 2008, 10:44
Location: Valjevo, Srbija

Post Napisano: 14 Oct 2012, 17:45


Eto, i mene ste ovom temom naterali da ponovo sredim conky :)

Screenshot...
Workspace 1_005.jpg
.conkyrc

Code: Select all

# .conkyrc by fabsh <fabsh@lamerk.org>
# Based on ideas and code from the CunchBang Linux forums at http://crunchbanglinux.org
# v. 1.0

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 4

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

own_window yes
own_window_transparent yes
#own_window_type override
#own_window_type desktop
own_window_type normal #use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
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 200 0
maximum_width 200

# Draw shades?
draw_shades yes

# 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 grey
#default_shade_color black
#default_outline_color grey
own_window_colour grey

# 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 12
gap_y 8

# 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 1

# 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

#${font Radio Space Bold Italic:size=16}${alignc }SLACKWARE 14.0${font} 
SYSTEM ${hr 2}
${font Radio Space Bold Italic:size=16}${alignc }SLACKWARE 14.0${font} 

${alignc 24}${font Arial Black:size=14}${nodename}${font}
${alignc }Toshiba Satellite C655
${voffset 2}${font Arial Black:style=Bold:size=12}#!${font}   CrunchBang Linux  ${alignr}08.10.01
${font OpenLogos:size=16}E${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A${font}   CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}

TEMPERATURE ${hr 2}
 ${font Weather:size=16}x  ${font}CPU temp: ${color}${alignr -3}${execi 10 sudo sensors | grep 'temp1' | cut -c16-17}°C  
 ${font Weather:size=16}x  ${font}HDD temp: ${color}${alignr}${execi 10 sudo /usr/sbin/hddtemp /dev/sda | cut -c55-56}°C 

DATUM ${hr 2}
${alignc 40}${font Arial Black:size=30}${time %H:%M}${font}
${voffset 2}${alignc}${time %A, %d %B %Y}


${voffset -10}HDD ${hr 2}
${voffset 4}${font StyleBats:size=14}o${font}   ${voffset -5}Root:
${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${voffset 4}${font StyleBats:size=14}o${font}   ${voffset -5}Podaci:
${voffset 4}${fs_free /media/podaci}/${fs_size /media/podaci} ${alignr}${fs_bar 8,60 /media/podaci}

MREŽA ${hr 2}
${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0}/s   ${alignr}${upspeedgraph eth0 8,60 BEBEBE BEBEBE}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0}/s   ${alignr}${downspeedgraph eth0 8,60 BEBEBE BEBEBE}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
${endif}
${voffset 20}${alignc }Powered by
#${font Radio Space Bold Italic:size=16}${alignc }POWERED BY${font} 
${voffset -20}${font OpenLogos:size=100}${alignc -20}q${font} 
nije važno samo raditi ono što voliš...važnije je voleti ono što radiš



Prijatelj foruma
Prijatelj foruma
offline
User avatar

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

Post Napisano: 14 Oct 2012, 17:51


Izvinjavam se na offu. Koja je ovo tema u Fluxu?
Ako može link.



Administrator
Administrator
offline
User avatar

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

Post Napisano: 14 Oct 2012, 18:02


Sviđa mi se. I ceo screenshot je dobar. Baš je KISS (keep it simple stupid) :grin:
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

Posts: 845
Joined: 25 May 2008, 10:44
Location: Valjevo, Srbija

Post Napisano: 14 Oct 2012, 19:50


@brok

Ne sećam se odakle sam skinuo temu, ali zapakovao sam fajlove i kačim uz ovu poruku :)
DarkBlackBrok.tar.gz
(5.93 KiB) Downloaded 176 times
Samo raspakuj u folder /home/username/.fluxbox/styles/ i to je to :)

:beer: :beer: :beer:
nije važno samo raditi ono što voliš...važnije je voleti ono što radiš



Administrator
Administrator
offline
User avatar

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

Post Napisano: 17 Oct 2012, 16:23


Za postavku ovog conky treba vam skripta i par fontova. Fontove koje nemate u sistemu možete preuzeti odavde. Trebaju vam sledeći fontovi: Radio Space, StyleBats, Weather i OpenLogo.

Napomena: Osim weather, ostali fontovi su free for personal use. Weather font je shareware.

Nakon što ih kopirate u ~/.fonts pokrenite

Code: Select all

fc-cache -f -v
Restart sistema je sledeći. Nakon toga je dovoljno ubaciti sledeći kod u 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 override
own_window_transparent yes
own_window_hints decorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 190
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_left
gap_x 12
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${alignc}${time %d, %B, %Y}
          ${font Radio Space Bold Italic:size=30}${time %H:%M}${font}

${font OpenLogos:size=14}E${font}   ${color red}$sysname: ${color}$alignr${exec cat /etc/slackware-version}
${font OpenLogos:size=14}t${font}   ${color red}Hostname: ${color}$alignr$nodename
${font StyleBats:size=14}q${font}   ${color red}Kernel: ${color}$alignr$kernel
${font StyleBats:size=14}v${font}   ${color red}Uptime: ${color}$alignr$uptime

${font StyleBats:size=14}A${font}   ${color red}CPU: ${color}${alignr}${freq} MHz
  ${font Weather:size=14}x ${font}${color red} CPU temp: ${color}${alignr}${execi 10 sensors | grep 'Temp' | cut -c17-18}C
  ${font Weather:size=14}x ${font}${color red} AMD HD6750 ${color}${alignr}${execi 10 aticonfig --adapter=0 --od-gettemperature | grep Temp | cut -c37-38}C
  ${font Weather:size=14}x ${font}${color red} HDD SATA temp ${color}${alignr}${execi 10 sudo /usr/sbin/hddtemp /dev/sda | cut -c55-56}C
  ${font Weather:size=14}x ${font}${color red} HDD ATA temp ${color}${alignr}${execi 10 sudo /usr/sbin/hddtemp /dev/sdb | cut -c55-56}C

${font StyleBats:size=14}A${font}   ${color red}CPU1 ${color}${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
${font StyleBats:size=14}A${font}   ${color red}CPU2 ${color}${alignr}${cpu cpu2}%
${cpubar 4 cpu2}

${font StyleBats:size=14}g${font}   ${color red}Ram ${color}${alignr}$mem / $memmax ($memperc%)
${membar 4}
${font StyleBats:size=14}j${font}   ${color red}swap ${color}${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

${font StyleBats:size=14}o${font}   ${color red}Root: ${color}${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
${font StyleBats:size=14}o${font}   ${color red}Home: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}
${font StyleBats:size=14}o${font}   ${color red}magacin: ${color}${alignr}${fs_free /mnt/magacin} / ${fs_size /mnt/magacin}
${fs_bar 4 /mnt/magacin}

${font PizzaDude Bullets:size=14}U${font}${color red}Down ${color}${downspeed eth0} ${alignr}${font PizzaDude Bullets:size=14}O${font}${color red}Up ${color}${upspeed eth0}
${downspeedgraph eth0 25,90} ${alignr}${upspeedgraph eth0 25,90}
${font PizzaDude Bullets:size=14}T${font}${color red}Total ${color}${totaldown eth0} ${alignr}${font PizzaDude Bullets:size=14}N${font}${color red}Total ${color}${totalup eth0}
${color red}LAN IP:    ${color}$alignr${execi 200 curl ifconfig.me}
${voffset 20}${alignc }Powered by
#${font Radio Space Bold Italic:size=16}${alignc }POWERED BY${font} 
${voffset -20}${font OpenLogos:size=100}${alignc -20}q${font} 
Sad vam ostaje samo da doterujete kako vam odgovara :cool:
conky full.png
Last edited by stereo on 17 Oct 2012, 16:40, edited 1 time in total.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

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

Post Napisano: 17 Oct 2012, 16:39


Ima jedan mali trik koji nije loše odraditi na novijim, bržim računarima. Dešava se ponekad da prilikom startovanja conky sa sistemom, da conky "nestane". Zapravo hoće da se startuje conky pre samog X i onda ostane ispod pozadine ekrana. Dakle aktivan je ali se ne vidi.
E da bi to sprečili pratimo sledeće korake:

1. napravimo skriptu start_conky.sh koja će se pokretati sa sistemom

Code: Select all

nano start_conky.sh
2. ubacimo sledeći tekst

Code: Select all

#!/bin/bash

sleep 5
conky -c /home/zeljko/.conkyrc &
exit 0

3. snimimo izmene i napustimo fajl
4. postavimo start_conky.sh da se pokreće sa sistemom.

Conky će se sad pokretati 5 sekundi nakon što mu je sistem dao naredbu za pokretanje. I to je sve.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

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

Post Napisano: 21 Nov 2012, 02:45


Evo već neko vreme se nisam igrao sa Conky podešavanjima ali sam skoro naleteo na neke f-je koje nisam ranije koristio. Jedna od njih je

Code: Select all

${diskio /dev/sda}
Dodao sam i merenje obrtaja ventilatora, promenio sam očitavanje da bude 5 sekundi i izbacio sam bar i graph f-je, dodao sam malo podešena očitavanja procesa (sa pid, cpu i ram očitavanjima) i možda još poneka sitnica. Ima mesta za još neka sitna podešavanja ali to ću kasnije.

Dodatni font koji je korišćen je ovaj.
Ovaj conkyrc se nalazi na maloj mašini i njegov sadržaj izgleda ovako:

Code: Select all

background yes
font Sans:size=9
#xftfont Sans:size=10
use_xft yes
xftalpha 0.8
update_interval 5.0
total_run_times 0
own_window no
own_window_type panel
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220 5
maximum_width 210
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_left
gap_x 12
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 5
override_utf8_locale yes

TEXT
${font OpenLogos:size=14}E${font}   ${color red}$sysname: ${color}$alignr${exec cat /etc/slackware-version}
${font OpenLogos:size=14}t${font}   ${color red}Hostname: ${color}$alignr$nodename
${font StyleBats:size=14}q${font}   ${color red}Kernel: ${color}$alignr$kernel
${font StyleBats:size=14}v${font}   ${color red}Uptime: ${color}$alignr$uptime
${font Webdings:size=14}~${font} ${color red}Battery:${color}${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font Webdings:size=14}~${font} ${color red}Battery: ${alignr} ${battery_time} ${color} 
${font StyleBats:size=14}A${font}   ${color red}CPU: ${color}${alignr}${freq_g} GHz
 ${font Weather:size=14}x ${font} ${color red}CPU temp: ${color}${alignr}${acpitemp}°C
${font Martin Vogel's Symbols:size=14}j${font} ${color red}CPU fan: ${color}${alignr}${execi 3 sensors | grep "fan" | cut -c14-18}RPM
 ${font Weather:size=14}x ${font} ${color red}HDD SATA temp ${color}${alignr}${execi 10 sudo /usr/sbin/hddtemp /dev/sda | cut -c55-56}°C

${font StyleBats:size=14}A${font}   ${color red}CPU ${color}${alignr}${cpu cpu0}%
${font StyleBats:size=14}g${font}   ${color red}Ram ${color}${alignr}$mem / $memmax ($memperc%)
${font StyleBats:size=14}j${font}   ${color red}swap ${color}${alignr}$swap / $swapmax ($swapperc%)

${font StyleBats:size=14}o${font}   ${color red}Root: ${color}${alignr}${fs_free /} / ${fs_size /}
${font StyleBats:size=14}o${font}   ${color red}Home: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${font StyleBats:size=14}o${font}   ${color red}magacin: ${color}${alignr}${fs_free /mnt/magacin} / ${fs_size /mnt/magacin}

${font PizzaDude Bullets:size=14}U${font}${color red}Down ${color}${downspeed wlan0} ${alignr}${font PizzaDude Bullets:size=14}T${font}${color red}Total ${color}${totaldown eth0}
${font PizzaDude Bullets:size=14}O${font}${color red}Up ${color}${upspeed wlan0} ${alignr}${font PizzaDude Bullets:size=14}N${font}${color red}Total ${color}${totalup eth0}
${color red}WLAN IP:    ${color}$alignr${execi 200 curl ifconfig.me}

${color red}NAME ${alignr}PID CPU% MEM%${color}
${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}

${color red}Disk I/O:${color} ${alignr}${diskio /dev/sda}
Evo i screenshota
Screenshot - 11212012 eeepc.png
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

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

Post Napisano: 13 Jan 2013, 03:00


Vidi se da se odavno nisam igrao sa conky setovanjima. Zbog fluxa sam drastično izmanjao podešavanja i za večeras je dosta. Videću za koji dan kakav će biti konačan rezultat :)

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 override
own_window_transparent yes
own_window_hints decorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 350 80
maximum_width 2000
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_left
gap_x 0
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${voffset -0}${offset 20}${font Radio Space Bold Italic:size=30}${time %H:%M}${font}${voffset 0}${offset 10}${time %d, %B, %Y}${voffset -5}${offset 10}${font StyleBats:size=14}v${font} $uptime${voffset -5}${offset 10}${font StyleBats:size=14}A${font} ${freq_g} GHz${voffset -6}${offset 10}${font Weather:size=14}x ${font} ${execi 10 sensors | grep 'Temp' | cut -c17-18}°C${voffset -6}${offset 10}${font Weather:size=14}x ${font} ${execi 10 aticonfig --adapter=0 --od-gettemperature | grep Temp | cut -c37-38}°C${voffset -5}${offset 10}${font StyleBats:size=14}A${font} ${cpu cpu1} / ${cpu cpu2}%${voffset -5}${offset 10}${font StyleBats:size=14}g${font}  $mem / $memmax${voffset -5}${offset 10}${font StyleBats:size=14}o${font} ${fs_free /} / ${fs_size /}${voffset -5}${offset 10}${font StyleBats:size=14}o${font} ${fs_free /home} / ${fs_size /home}${voffset -5}${offset 10}${font PizzaDude Bullets:size=14}U${font} ${downspeed eth0}${voffset -5}${offset 10}${font PizzaDude Bullets:size=14}O${font} ${upspeed eth0}
I naravno sličica
conky white fluxbox.png
conky white fluxbox
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 2 guests