Doterivanje, editovanje, razmena... conkyrc-a

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

Moderators: Sinisa, Urednik

Post Reply

Administrator
Administrator
offline
User avatar

Posts: 4093
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 13 Jan 2013, 12:43


@stereo:
Ovako izgleda mnogo bolje nego ona varijanta sa crvenim slovima. E sad je već fensi.



Administrator
Administrator
offline
User avatar

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

Post Napisano: 03 Apr 2013, 12:22


Već neko vreme nisam radio conkyrc pa sam malo i zaboravio kako se šta podešava :-/ no ipak sam uspeo nešto da spakujem, skoro pa minimalno :)

Code: Select all

background no
font Sans:size=8
#xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 1.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 1300 5
maximum_width 1300
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 20
gap_y 700
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT

${font}   ${color red}$sysname: ${color}${exec cat /etc/slackware-version}${alignc}${font}   ${color red}CPU1 ${color}${alignc}${cpu cpu1}%${alignr}${font}   ${color red}Ram ${color}${alignr}$mem / $memmax ($memperc%)
${font}   ${color red}Hostname: ${color}$nodename${alignc}${font}   ${color red}CPU2 ${color}${alignc}${cpu cpu2}%${alignr}${font}   ${color red}Swap ${color}${alignr}$swap / $swapmax ($swapperc%)
${font}   ${color red}Root: ${color}${fs_free /}${alignc}${font}   ${color red}Home: ${color}${alignc}${fs_free /home}${alignr}${font}   ${color red}Magacin: ${color}${alignr}${fs_free /mnt/magacin} / ${fs_size /mnt/magacin}
A tu je i slika ekrana
Screenshot - 03.04.2013_2.png
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Stalni član
Stalni član
offline
User avatar

Posts: 35
Joined: 16 Aug 2012, 20:01

Post Napisano: 26 Apr 2013, 20:37


Onaj conky se može napraviti po ovom uputstvu, http://ubuntuforums.org/showthread.php?t=1771033 ja nemam stvarno vremena danas, pa ako negde zapne uključiću se sutra nekad tokom dana, ozbiljan me posao napao.

Code: Select all

##################################
## urosh | rev. 11-12-01 20:20 ##


## ¡PLEASE READ THE FINE PRINT! ##

####
## Development Platforms (current)
#
#  Ubuntu 10.10 'Maverick Meerkat' (GNOME 2.28 - Conky 1.8.0)
#  Ubuntu 12.04 'Precise Pangolin' (GNOME-SHELL - UNITY 2D/3D - Conky 1.8.1)
#  Screen Resolution: 1280x1024x24 (DELL UltraSharp 1907FP)

####
## Prerequisites (required)
#
#  conky-all 1.8.0 or 1.8.1
#  cURL - Command Line Tool
#  xsltproc - Command Line Tool
#  UTF-8 Compatible Text Editor

####
## Installed fonts (required)
#
#  ConkyWeather (Stanko Metodiev)
#  Cut Outs for 3D FX (Fonts & Things)
#  Droid Font Family (Google Android SDK)
#  KR A Round (Kat's Fun Fonts)
#  OpenLogos (Icoma)
#  PizzaDude Bullets (Jakob Fischer)
#  Radio Space (Iconian Fonts)
#  StyleBats (Vinterstille)
#  Ubuntu Font Family (Canonical Ltd)
#  Ubuntu Title Bold (Paulo Silva - not included in link below)
#  Weather (Jonathan Macagba)
# 
## Tips n' Tricks from Mr. Peachy, djyoung4, and 42dorian (Thanks!)
## Most necessary fonts can be downloaded here: http://ompldr.org/vOHdoag
## Unzip the fonts into your font folder, for example: /home/username/.fonts
## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv

####
## Use XFT? Required to Force UTF8 (see below)
#
use_xft yes
xftfont DroidSans:size=8.75
xftalpha 0.1

####
## Force UTF8? Requires XFT (see above)
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes

####
####
## This buffer is used for text, single lines, output from $exec, and other variables.
## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
## Decreasing the size (too low) will truncate content and cause strange display output.
## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
#
text_buffer_size 6500

####
## Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
#
max_specials 600
####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 2.0

####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0

####
## Create own window in instead of using desktop?
#
own_window yes
own_window_transparent yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
####
## Some distros also require the following 2 lines.
#
own_window_argb_visual yes
own_window_argb_value 255

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades yes
default_shade_color 392421

####
## Draw outlines?
#
draw_outline no

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders no

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment top_right

####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
#
minimum_size 240 1394

####
## Maximum width of the text area.
## Syntax: maximum_width [width]
#
maximum_width 240

####
## Gap between text and screen borders.
#
gap_x 6	  ## Left / Right
gap_y 32  ## Top / Bottom

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Limit the length of names in "Top Processes".
#
top_name_width 10

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
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

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer right

####
## My colors (suit yourself)
#
color0 White		#FFFFFF
color1 Ivory		#FFFFF0
color2 Ivory2		#EEEEE0
color3 Ivory3		#CDCDC1
color4 Tan1		#FFA54F
color5 Tan2		#EE9A49
color6 Gray		#7E7E7E
color7 AntiqueWhite4	#8B8378
color8 DimGray		#696969
color9 Tomato		#FF6347

#####
## Load Lua for shading (optional)
## Set the path to your script here.
#
lua_load ~/.conky/draw_bg.lua
lua_draw_hook_pre draw_bg

####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/.conky/bargraph_small.lua
lua_draw_hook_post main_bars

TEXT
##################################
##             LOGO             ##
##################################
## Uncomment for hard-coded ID (static)
#${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}1${offset 0}2${offset 0}.${offset 0}0${offset 0}4${font}
####
## Uncomment for soft-coded ID (dynamic)
${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font Boulder:size=23.6}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
####
## Additional ID (branch version, code name, release date, etc.)
#${voffset 0}${goto 188}${font Ubuntu-B:size=9.1}${color4}Serbian${font}
##################################
##            SYSTEM            ##
##################################
${voffset 7}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release} Precise Pangolin${font}
${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia GeForce 8800 GTS(rev a2)${alignr}${font DroidSans:size=8.3}${pre_exec dpkg --status nvidia-current-updates | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
##################################
##          PROCESSORS          ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
##################################
##            MEMORY            ##
##################################
${voffset 5}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
##################################
##             HDD              ##
##################################
${voffset 15}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 6}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}ROOT${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
${voffset 15}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}HOME${goto 95}${font DroidSans:size=8.3}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%${font}
${voffset 15}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
${voffset 15}${font DroidSans:bold:size=8}${color4}TEMPERATURE ALERT${offset 8}${color5}${voffset 2}${hr 2}${font}
${goto 6}${voffset -2}${color1}${font Devil inside:size=12}1${font}${color6}${voffset -0}${goto 32}CPU Temp: ${alignr}${color6}${execi 30 sensors | grep 'Core 0' | cut -c16-17}°C / ${color6}${execi 30 sensors | grep 'Core 1' | cut -c16-17}°C
# GPU TEMPS
${goto 6}${color1}${font StyleBats:size=12}a${font}${color9}${voffset +1}${goto 32}GPU Temp: ${alignr}${execi 29 nvidia-settings -tq GPUCoreTemp} °C
#${font StyleBats:size=12}a${font}  Fan Speed : $alignr$color9${execi 10 nvidia-smi -a | grep Fan}
##################################
##         TOP PROCESSES        ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 1}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 2}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 3}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 4}${alignr}${top_mem mem 4}%${font}
# ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
# ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
##################################
##           NETWORK            ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown eth0}${alignr}${font DroidSans:size=8.3}${downspeed eth0}${font}
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.65}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup eth0}${alignr}${font DroidSans:size=8.3}${upspeed eth0}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.5}LAN${alignr}${font DroidSans:size=8.3}${addr eth0}${font}
#${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${alignr}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
#################################
## WEATHER ##
#################################
${voffset 4}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color4}${voffset -2}${hr 2}${font}
${execpi 900 conkywx -c /etc/conkywx/conkywx.conf -t /usr/share/conkywx/examples/wx-wu-vindsl-template|
####
## Windspeed [WS]
sed -e 's/Calm mph'/'\$\{offset 8\}Calm/g'|
####
## Moon Phases [MP]
sed -e 's/New Moon'/'\$\{offset -10\}New Moon/g'|
sed -e 's/Waxing Crescent'/'\$\{offset -3\}Waxing/g'|
sed -e 's/First Quarter'/'\$\{offset -3\}First Qtr/g'|
sed -e 's/Waxing Gibbous'/'\$\{offset -3\}Waxing/g'|
sed -e 's/Full Moon'/'\$\{offset -8\}Full Moon/g'|
sed -e 's/Waning Gibbous'/'\$\{offset -3\}Waning/g'|
sed -e 's/Last Quarter'/'\$\{offset -3\}Last Qtr/g'|
sed -e 's/Waning Crescent'/'\$\{offset -3\}Waning/g'
}${font} 
##################################
##             TIME             ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset -4}${font Radio Space:size=36}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}
#${voffset 0}${font Roboto:size=6.2}${color4}${alignc 2}Izlazi${offset 2}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Zalazi${offset 1}${texeci 1800 conkyForecast --location=SRXX0005 --datatype=SS --startday=1}${font}
##################################
##           CALENDAR           ##
##################################
${voffset 4}${font Roboto:bold:size=8}${color4}DATE${offset 8}${color5}${voffset -2}${hr 2}${font}
${voffset 16}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
####
## Uncomment for Conky 1.8.0 (use mono fonts only)
${voffset -75}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for Conky 1.8.1 (use mono fonts only)
#${voffset -75}${offset 100}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
## Uncomment for "SUNDAY = First Day-of-the-Week" (use mono fonts only)
#${voffset -70}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for "MONDAY = First Day-of-the-Week" (use mono fonts only)
# ${voffset -68}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for border around today's date
${voffset -98}${font CutOutsFor3DFX:size=67}${color8}${alignc 99}2${font}
##################################
##   RHYTHMBOX (Experimental)   ##
##################################
${if_running rhythmbox}
#${voffset -8}${font DroidSans:bold:size=7.75}${color4}RHYTHMBOX${offset 8}${color5}${voffset -2}${hr 2}${font}
#${voffset 8}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/rhythmbox-client --print-playing-format %tt | head -n 1`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 rhythmbox-client --print-playing-format %tt --no-start}}${font}${else}${alignc}${execi 2 rhythmbox-client --print-playing-format %tt --no-start}${font}${endif}${endif}
##################################
##    BANSHEE (Experimental)    ##
##################################
${if_running banshee}
#${voffset -10}${font DroidSans:bold:size=7.75}${color4}BANSHEE${offset 8}${color8}${voffset -2}${hr 2}${font}
#${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/banshee --query-title --no-present | cut -f1- -d " "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 banshee --query-title --no-present | cut -f2- -d " "}}${font}${else}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d " "}${font}${endif}${endif}
${voffset -10}${font Roboto:bold:size=8}${color5}FORTUNE ${hr 2}${color8}
${font FreeSans:italic:size=7.75}${color7}${execi 120 fortune -s | fold -w50} 



Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 65
Joined: 24 Jan 2013, 21:33
Location: Srbija

Post Napisano: 29 Apr 2013, 15:40


Moj .conkyrc fajl

Code: Select all


  background yes
  use_xft yes
  xftfont HandelGotD:size=9
  xftalpha 0.5
  update_interval 1.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 200 5
  maximum_width 220
  draw_shades no
  draw_outline no
  draw_borders no
  draw_graph_borders no
  default_color grey
  default_shade_color red
  default_outline_color green
  alignment top_right
  gap_x 12
  gap_y 48
  no_buffers yes
  uppercase no
  cpu_avg_samples 2
  override_utf8_locale no
                        
  TEXT
  $color
  ${color CC9900}SYSTEM ${hr 2}$color
  $sysname $kernel
  ${color CC9900}CPU ${hr 2}$color

  Total CPU: CPU: ${freq 1} MHz
  ${color 597DB2} ${cpu cpu0}% ${cpubar} $color
  ${cpugraph 000000 597DB2}
  Core 1: ${freq 1} MHz   
  ${color 597DB2} ${cpu cpu1}% ${cpubar cpu1}$color
  Core 2: ${freq 2} MHz   
  ${color 597DB2} ${cpu cpu2}% ${cpubar cpu2}$color

  ${color CC9900}PROCESSES ${hr 2}$color
  NAME $alignr  PID%  CPU%   MEM%
  ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
  ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
  ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}

  ${color CC9900}MEMORY ${hr 2}$color
  RAM Used: $alignc $mem / $memmax $alignr
 ${color FF6600} $memperc%  ${membar 6}$color
  SWAP Used:$alignc $swap / $swapmax $alignr
  ${color FF6600} $swapperc%     ${swapbar 6}$color

  ${color CC9900}DISK ${hr 2}$color
  /ROOT Used: $alignc ${fs_used /} / ${fs_size /} $alignr
  ${color FFFF33} ${fs_free_perc /}% ${fs_bar /}$color
  /HOME Used: $alignc ${fs_used /home} / ${fs_size /home} $alignr
  ${color FFFF33} ${fs_free_perc /home}% ${fs_bar /home}$color

  ${color CC9900}TIME & DATE ${hr 2}$color
  ${color 339900}${execi 30 tail -n3 /var/log/messages | fold -w50}$color
  Time: ${alignr}${time %H:%M:%S}
  Date: ${alignr}${time %d.%m.%y}

  ${color}NET
  ${color}ppp0 ${addr ppp0}
  ${color}Down: ${downspeed ppp0}
  ${color}Up: ${upspeed ppp0}
  ${color}Total Down: ${totaldown ppp0}
  ${color}Total Up: ${totalup ppp0}


Deo koji prikazuje internet treba naknadno doterati, posto je u pitanju Telenor Internet preko usb modema. Kod mene je naziv konekcije ppp0 konekcija. Kod nekoga ce to biti eth0, a kod nekoga wlan.
conky.png


online

Administrator
Administrator
online
User avatar

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

Post Napisano: 03 Nov 2013, 23:03


Danas sam testirao conky i na drugim DE (Mate, XFCE, KDE) i primetio sam problem sa tamnom pozadinom u KDE okruženju (crna pozadina ispod conky prikaza iako je postavljeno "background no"). Rešenje je dodavanje linije "own_window_argb_visual true" u .conkyrc fajl u sekciji gde se definišu osobine conky prozora. Ovaj parametar je neophodan kako bi KWin (ako njega koristite kao WM) mogao da dobije podatke o alpha kanalima i postavi adekvatnu providnost prozora. Možda nekom zatreba :)
nije važno samo raditi ono što voliš...važnije je voleti ono što radiš



Administrator
Administrator
offline
User avatar

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

Post Napisano: 21 Dec 2013, 00:52


Eto svideo mi se LSD conky :angel: pa da osvežimo malo temu.

lsd.png, conkyrc i lsd_rings.lua treba da budu u istom direktorijumu, kod mene je to

Code: Select all

~/conky/lsd/.conky/
a svako neka postavi kako mu odgovara i da ne zaboravi da izvrši neophodne izmene.

conkyrc:

Code: Select all

update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
use_xft yes
xftfont Zekton:size=9
override_utf8_locale yes
text_buffer_size 2048
own_window_class Conky
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager
alignment tl
gap_x 40
gap_y 50
minimum_size 265 412
default_bar_size 30 8
draw_shades no
default_color ffffff
default_shade_color 000000
color0 00d9ff
color1 ffffff
color2 ffffff



lua_load ~/conky/lsd/.conky/lsd_rings.lua
lua_draw_hook_post main

TEXT
${goto 185}${voffset -8}${color0}${font Zekton:style=bold:size=12}Stereo Hi-Fi
${goto 60}${voffset 20}${color}${font}Temperature: 
#${goto 90}${voffset 15}${execi 10 sensors | grep 'temp2' | cut -c16-20}C
${goto 10}${voffset 75}${font Zekton:style=bold:size=30}${time %H:%M}${font}
${goto 166}${voffset -10}${font Zekton:style=Bold:size=9}Root
${alignc -44}${font Zekton:style=Bold:size=9}${fs_used /}
${goto 49}${voffset 45}CPU${voffset -5}${color}${goto 128}RAM
${goto 130}${font Zekton:style=Bold:size=9}${memperc}%
${goto 80}${voffset 20}${font Zekton:style=Bold:size=9}Home
${goto 80}${font Zekton:style=Bold:size=9}${fs_used /home}

${image ~/conky/lsd/.conky/lsd.png -p 10,0 -s 255x412}
lsd_rings.lua

Code: Select all

require 'cairo'

--guage DATA
 gauge = {
 {
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=60,                          y=265,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=180,
    graph_unit_angle=3.599,        graph_unit_thickness=2.7,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.2,
    graph_fg_colour=0x00d9ff,      graph_fg_alpha=0.4,
    hand_fg_colour=0x00d9ff,       hand_fg_alpha=1.0,
    txt_radius=20,
    txt_weight=1,                  txt_size=7.0,
    txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
    graduation_radius=16,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=36,
    graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=9.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
 {
		    name='acpitemp',               arg='temp2',                  max_value=100,
		    x=85,                          y=85,
		    txt_weight=1,                  txt_size=12.0,
		    txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
		}
 }
 
 -------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end
-------------------------------------------------------------------------------
--                                                             draw_gauge_ring_t
-- displays gauges
--
function draw_gauge_ring_t(display, data, value)
    local function temp_colour(value)
		if value >= 65 then
			return '0xff0000'
		elseif value < 65 then
			return '0xffffff'
		end
	end
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = temp_colour(value), data['txt_fg_alpha']
    string = tostring(value)..'°C'
    cairo_select_font_face (display, "zekton", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x, y)
    cairo_show_text (display, string)
    cairo_stroke (display)


end
-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "zekton", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "zekton", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end

-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    local function load_gauge_rings_1(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring_t(display, data, value)
    end    
--    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[1])
        load_gauge_rings_1(display, gauge[2])
--    end
--	load_gauge_rings(display, gauge)
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    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 display = cairo_create(cs)
    
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    
    if update_num > 5 then
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end
lsd.png
lsd.png
Meni pravi problem prikaz temperature. Rešenja ima nekoliko. Mogu da izbacim prikaz temperature jer mi zapravo i ne koristi u conky. Mogu da postavim izlaz iz lm_sensors. Tu je problem samo pozicioniranje ostalih elemenata jer se raspored poremeti. Treća opcija je da sredim acpitemp argument iz lua fajla. Ostavljam ovako jer će možda nekome acpitemp raditi upravo ovako kako jeste.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Prijatelj foruma
Prijatelj foruma
offline
User avatar

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

Post Napisano: 21 Dec 2013, 11:03


Ovo je namenjeno za Ubuntu/Mint, mislim na PPA, ali source može da se izvuče i da se svašta uradi, samo ko ima živaca da se petlja http://www.teejeetech.in/p/conky-manager.html" onclick="window.open(this.href);return false; a ima svašta u tom stilu koji su postavio Stereo. Recimo LSD konki tema je slična.
preview.png
Evo cele LSD teme sa .conkyrc-om i fontovima
LSD.tar.gz
(159 KiB) Downloaded 201 times
Edit, sada gledam, to je zapravo ista tema, isto se i zove, znači LSD. :)

Evo šta sve ima od konki tema

Code: Select all

4 & 2 core blue    clock weather       cricle clock     Night Drive
4 core             Colors_conky        Cubes Conky      NInJA conky
4core blue         Computer Love       dark clock       NvidiaPanel
4core pink         conki 12.10         dark data bar    octacore
arcblack           Conky 8             Deep_Blue_Conky  pencil
big                Conky Bar           dot circle       Predator
big sintinel       Conky Blood         Emays            Scratchy
bionic             Conkybox            future_conky     sentinel
blood conky        Conky Dark 4 cores  Gold&Grey        sentinel-reloaded
blue breaking bad  conkydots           Google Conky     tech-mon_reloaded
Blue stats         conky-equalizer     Gotham           Tiles
blue_vision        conky_light 4core   goth white       Top_Bar
box conky          conky max 4         Guages           Torn Paper Clone
breaking Bad 2     Conky MIUI          halconky         Tron
cairosidebar       conky_now           hanging clock    Tux
cali 4core         conky orange        Hy-lua           verti-color
cali conky         conky_popup         kensho           waves 4core
classic clock      Conky Seamod        love conky       Weather
clear circles      Cowon Conky         LSD              Zrradia_conky
Clock and stats    CPUPanel            MaxConky
clock & data       Crazy cool conky    Metro
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

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

Post Napisano: 21 Dec 2013, 11:57


Nije to loša fora sa conky menadžerom samo ja baš volim sam, ručno da nameštam. Automatizacija za neke druge stvari :)
Hvala za info.
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Prijatelj foruma
Prijatelj foruma
offline
User avatar

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

Post Napisano: 21 Dec 2013, 13:50


Nema na čemu.
Isto je i kod mene je tako, drugčije i ne možemo nego ručno, nego sam mislio na prilagođavanje konkija iz recimo 4-5 različitih. Momentalno me baš mrzi to da radim da bih ga sredio po mojim potrebama i ukusu tj. izgledu, i ako relativno lako može sve da se dotera. ;)
Registrovani Linux korisnik #487729
Upostovano sa Linuks Operativnog Sistema



Administrator
Administrator
offline
User avatar

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

Post Napisano: 23 Jan 2014, 14:10


Kod mene se ispostavilo da ova conky postavka ume da troši previše ram-a. I to odjednom negde počne da troši ram. Slutim da je problem u LUA samo ne znam tačno gde. Na kraju sam odustao od ove conky postavke.
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