Doterivanje, editovanje, razmena... conkyrc-a

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

Moderators: Sinisa, Urednik

Post Reply

Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 176
Joined: 07 Sep 2013, 18:13
Location: Novi Sad

Post Napisano: 16 Feb 2014, 21:14


Evo,ovako, ako nekome ne radi transparentnost conky-a na KDE-u treba da izmeni ovaj deo sto se tice samog prozora conky-a u :

Code: Select all

own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type desktop
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
The quieter you become the more you are able to hear.



Administrator
Administrator
offline
User avatar

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

Post Napisano: 16 Feb 2014, 21:20


bad63r wrote:Evo,ovako, ako nekome ne radi transparentnost conky-a na KDE-u treba da izmeni ovaj deo sto se tice samog prozora conky-a u :

Code: Select all

own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type desktop
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
Ključni deo je

Code: Select all

own_window_argb_visual yes

jer uključuje real transparency u novijim verzijama programa. Čini mi se od 1.8.

EDIT: bad63r daj screenshot :)
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 176
Joined: 07 Sep 2013, 18:13
Location: Novi Sad

Post Napisano: 16 Feb 2014, 21:30


Evo ga :) Image

a evo i kod za conky(stereov conky sa malim ispravkama):

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_transparent yes
own_window_argb_visual yes
own_window_type desktop
own_window_class conky-semi
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 80
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}

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

Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}
Hvala @TildaTurn na resavanju problema :grlj:
The quieter you become the more you are able to hear.



Administrator
Administrator
offline
User avatar

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

Post Napisano: 16 Feb 2014, 21:43


bad63r wrote:Evo,ovako, ako nekome ne radi transparentnost conky-a na KDE-u treba da izmeni ovaj deo sto se tice samog prozora conky-a u :

Code: Select all

own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type desktop
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
drummer wrote: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 :)
Ponekad je dovoljno samo prelistati prethodne stranice teme u kojoj se piše...
nije važno samo raditi ono što voliš...važnije je voleti ono što radiš



Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 176
Joined: 07 Sep 2013, 18:13
Location: Novi Sad

Post Napisano: 21 Feb 2014, 13:55


@drummer... Sry
Ma veruj mi od silne nervoze sto ne radi i sto sam tolko puta preveslao forum, verovatno sam prevideo to sto si napisao...
The quieter you become the more you are able to hear.



Prijatelj foruma
Prijatelj foruma
offline
User avatar

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

Post Napisano: 21 Feb 2014, 14:03


Ma polako, ne polažeš ispit. :cheesy:
Manje više ono što tebi sada treba u ovom momentu to imaš već nekoliko puta pisano na forumu zajenice.
Takođe baci pogled i na Viki stranice i dokumentaciju.
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: 10 Aug 2014, 14:08


snimak_ekrana18.png
Suuuuny_conky_by_BigRZA_mod.tar.gz
conky + pozadina (podešen za rezoluciju laptopa 1366x768)
(500.74 KiB) Downloaded 202 times
Original:

Code: Select all

http://www.deviantart.com/art/Suuuuny-conky-153331007




Administrator
Administrator
offline
User avatar

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

Post Napisano: 10 Aug 2014, 19:00


Baš sam hteo da te pitam da ostaviš neki info u ovoj temi :)

Hvala :)
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Administrator
Administrator
offline
User avatar

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

Post Napisano: 21 Sep 2014, 15:50


Malo sam se igrao :) nisam odavno pa ajde... svakako ne mogu da nađem odgovarajući cokny setup pa sam stavio samo sat i to nešto malo drugačiji ;)

conkyrc:

Code: Select all

background no
update_interval 1
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250

alignment tl
gap_x 50
gap_y 50

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

use_xft yes
xftfont pftempestafivecondensed:size=10
xftalpha 0.5
uppercase no
default_color B0171F
color1 000000

lua_load /home/zeljko/conky/clock.lua
lua_draw_hook_pre draw_clock

TEXT
clock.lua:

Code: Select all

require 'cairo'
function conky_draw_clock()
	if conky_window==nil then return end
	local w=conky_window.width
	local h=conky_window.height
	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
	cr=cairo_create(cs)
			
	-- Settings
	
		-- What radius should the clock face (not including border) be, in pixels?
		
		local clock_r=60
	
		-- x and y coordinates, relative to the top left corner of Conky, in pixels
		
		local xc=w/2
		local yc=h/2
	
		-- Extent of the shadow, in pixels
		
		shadow_width=5
		
		-- x and y offsets of the drop shadow, relative to the centre of the clock face, in pixels. Can be positive (downward) or negative (upward)
		
		shadow_xoffset=0
		shadow_yoffset=2
		
		-- Do you want to show the second hand? Use this if you use a Conky update_interval > 1s. Can be true or false.
		
		show_seconds=true
	
	-- Grab time
	
	local hours=os.date("%I")
	local mins=os.date("%M")
	local secs=os.date("%S")
	
	secs_arc=(2*math.pi/60)*secs
	mins_arc=(2*math.pi/60)*mins
	hours_arc=(2*math.pi/12)*hours+mins_arc/12
	
		
	-- Draw hour hand
	
	xh=xc+0.9*clock_r*math.sin(hours_arc)
	yh=yc-0.9*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,1,1,1,0.5)
	cairo_stroke(cr)
	
	-- Draw minute hand
	
	xm=xc+1.3*clock_r*math.sin(mins_arc)
	ym=yc-1.3*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)
	
	-- Draw seconds hand
	
	if show_seconds then
		xs=xc+1.1*clock_r*math.sin(secs_arc)
		ys=yc-1.1*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
A evo i scrot-a
2014-09-21-165450_1360x768_scrot.png
Use the source, Luke
SSZ irc kanal
Spread the Word, “CHOOSE SLACK! and Don’t look back.”



Poznata ličnost
Poznata ličnost
offline
User avatar

Posts: 117
Joined: 18 Jan 2014, 18:02
Location: /home

Post Napisano: 21 Sep 2014, 19:40


E ja te moram moliti za ovaj wallpaper! :)
"It is not the brains that matter most, but that which guides them—the character, the heart, generous qualities, progressive ideas."
"I'd have to be a warrior, a slave I couldn't be. Soldier and a conqueror, fighting to be free"


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest