Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Post hier je .conkyrc plus een screenshot ;) 2013 V.C.  (gelezen 234216 keer)

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #150 Gepost op: 2009/09/05, 12:22:09 »
Bij deze die van mij:
# UBUNTU-CONKY
# conky configuration

background no
use_xft yes
xftfont Terminus:size=8
out_to_console no
update_interval 1.0
total_run_times 0
own_window override
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 12
border_width 1
default_color black
default_shade_color black
default_outline_color white
alignment top_left
maximum_width 270
own_window yes
own_window_type yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 15
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

TEXT
${color orange}SYSTEM ${hr 2}$color
Hostname: $nodename
Kernel: $kernel
Uptime: $uptime

${color orange}CPU${hr 2}$color
Load: $loadavg
Core 1 @ ${freq 1}Mhz:  ${cpu cpu1}% ${cpubar cpu1}
Core 2 @ ${freq 2}Mhz:  ${cpu cpu2}% ${cpubar cpu2}
Average: $cpu% $cpubar
$cpugraph
Name        $alignr          PID       CPU%    MEM%     
 ${top name 1} $alignr    ${top pid 1}  ${top cpu 1}    ${top mem 1}       
 ${top name 2} $alignr    ${top pid 2}  ${top cpu 2}    ${top mem 2}       
 ${top name 3} $alignr    ${top pid 3}  ${top cpu 3}    ${top mem 3}       
 ${top name 4} $alignr    ${top pid 4}  ${top cpu 4}    ${top mem 4}       

${color orange}MEMORY${hr 2}$color
RAM:       $mem/$memmax    $alignc $memperc% ${membar}
Swap:      $swap/$swapmax    $alignc $swapperc% ${swapbar}
Processes: $processes Running: $running_processes
Name        $alignr          PID       CPU%    MEM%     
 ${top_mem name 1}  $alignr    ${top_mem pid 1}  ${top_mem cpu 1}    ${top_mem mem 1}       
 ${top_mem name 2}  $alignr    ${top_mem pid 2}  ${top_mem cpu 2}    ${top_mem mem 2}       
 ${top_mem name 3}  $alignr    ${top_mem pid 3}  ${top_mem cpu 3}    ${top_mem mem 3}       
 ${top_mem name 4}  $alignr    ${top_mem pid 4}  ${top_mem cpu 4}    ${top_mem mem 4}       

${color orange}DISK ${hr 2}$color
home:    ${fs_used /home}/${fs_size /home}  $alignc ${fs_used_perc /home}% ${fs_bar /home}
HDD: ${fs_used /media/HDD}/${fs_size /media/HDD}  $alignc ${fs_used_perc /media/HDD}% ${fs_bar /media/HDD}

${color orange}NETWORK (${addr wlan0}) ${hr 2}$color
Down: ${downspeed wlan0} k/s                    Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,130} ${alignc} ${upspeedgraph wlan0 25,130}
Total: ${totaldown wlan0}                 Total: ${totalup wlan0}

${color orange}FORTUNE${hr 2}$color
${execi 100 fortune -s | fold -w50}

Ik heb deze ook ergens op het internet gevonden en aangepast.
Ik ben er wel vrij tevreden over.

Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #151 Gepost op: 2009/09/06, 21:24:40 »
Hoe kan je conky zelf een achtergrond laten instellen? Het liefst half transparant. Ik heb het bureaublad wat donkerder gegimpt, maar ik wil mijn .conkyrc graag universeel houden.

Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #152 Gepost op: 2009/09/07, 19:29:10 »
Iemand?

Ik vermoed dat het te maken heeft met own_window, own_window_colour en own_window_transparent. In post #74 van woteb staat er ook een blauwe achtergrond. Wat moet ik instellen voor zo'n zelfde achtergrond? Woteb, wat is de code van het blauwe schermpje daar?

mvg
Thijs

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #153 Gepost op: 2009/09/07, 19:35:25 »
Heb je hier iets aan?:
Conky FAS, pt 6 ; http://conky.sourceforge.net/faq.html
Citaat
#
Q: Transparency doesn't work! Why is this and how can I fix it?

A: Conky uses "pseudo"-transparency. What this means is that is not a truly "transparent" window. What it does is read the background of the root window, and changes it's own background to the section of the image it finds. Some Window or Desktop Managers do not set a background to the "real" root background, and instead place it on a layer above the root window. To fix this, you can use an application such as qiv (http://www.klografx.net/qiv/), "Esetroot" which is included with Eterm (http://www.eterm.org), "fbsetbg" which is included with fluxbox (http://www.fluxbox.org), or (my favourite) "feh" (http://linuxbrit.co.uk/feh/).

To set the background using "feh" from your ~/.xinitrc, try the following:

#!/bin/sh
sleep 1 && feh --bg-center ~/background.png &


Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #154 Gepost op: 2009/09/07, 20:09:03 »
Bij mij is het juist andersom, zoals te zien is in de bijlage. Het is transparant, maar ik wil het graag halftransparant of egaal zwart. Helaas zal dat dan niet werken. Hier mijn code, dat is ook wel handig om erbij te zetten. ;)

mvg
Thijs

background no
use_xft yes
xftfont Terminus:size=8
out_to_console no
update_interval 1.0
total_run_times 0
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 1
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_right
maximum_width 200
minimum_size 200
own_window yes
own_window_colour black
own_window_type override
own_window_transparent no
gap_x 20
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

TEXT

${color #ddaa00}Name${alignr}${color}$nodename ${alignc}
${color #ddaa00}Kernel${alignr}${color}$kernel
${color #ddaa00}Date${alignr} ${color} ${time %e %B %G}
${color #ddaa00}Time${alignr}${color}${time %H:%M:%S}
${color #ddaa00}UpTime${alignr} ${color}$uptime
${color #ddaa00}CPU${alignr}${color}$cpu%  ${acpitemp}C
${color #ddaa00}IP${alignr}${color}${addr eth0}
${cpugraph cpu1 20,000 ddaa00 ddaa00}
${cpugraph cpu2 20,000 ddaa00 ddaa00}

${color #ddaa00}Highest CPU:
${color slate grey} ${top name 1}$alignr${top cpu 1}%
${color lightgrey} ${top name 2}$alignr${top cpu 2}%
${color lightgrey} ${top name 3}$alignr${top cpu 3}%
${color lightgrey} ${top name 4}$alignr${top cpu 4}%

${color #ddaa00}Highest MEM:
${color slate grey} ${top_mem name 1}$alignr${top_mem mem 1}%
${color lightgrey} ${top_mem name 2}$alignr${top_mem mem 2}%
${color lightgrey} ${top_mem name 3}$alignr${top_mem mem 3}%
${color lightgrey} ${top_mem name 4}$alignr${top_mem mem 4}%

${color #ddaa00}MEM: ${color }$memperc% $mem/$memmax
${membar 5,000}
${color #ddaa00}SWAP:${color }$swapperc% $swap/$swapmax
${swapbar 5,000}

${color #ddaa00}Hdd Temp${alignr}${color }${exec nc localhost 7634 | cut -f 4 -d "|"} C
${color #ddaa00}Used${alignr}${color}${alignr}${fs_used /home} / ${fs_size /home}
${fs_bar 5,000 /}
${color }${diskiograph 20,160 ddaa00 ddaa00}

${color}Up${alignr}${color}${upspeed eth0} k/s${alignr}${upspeedgraph eth0 10,90 ddaa00 ddaa00}
${color}Down${alignr}${color}${downspeed eth0}k/s${color}${alignr}${downspeedgraph eth0 10,90 ddaa00 ddaa00}

Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #155 Gepost op: 2009/09/07, 20:56:50 »
Het werkt. Ik weet niet hoe, maar hier is de code. ??? =D

background no
use_xft yes
xftfont Terminus:size=8
out_to_console no
update_interval 1.0
total_run_times 0
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 1
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_right
maximum_width 200
minimum_size 200
own_window yes
own_window_colour black
own_window_type override
own_window_transparent no
gap_x 20
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

mvg
Thijs

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #156 Gepost op: 2009/09/08, 14:40:18 »
@Thijsg : met own_window_colour *** lukt het inderdaad, maar bij mij stond die er ook pas na een reboot (opnieuw aanmelden zal ook wel lukken denk ik), met killall -HUP conky deed hij ook niets. Vreemd...

Ik heb die van mij ook nog wat aangepast:
# UBUNTU-CONKY
# conky configuration

background no
use_xft yes
xftfont Terminus:size=8
out_to_console no
update_interval 1.0
total_run_times 0
own_window override
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
border_margin 12
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_right
maximum_width 270
own_window yes
own_window_type yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 15
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

TEXT
${font style=Bold}${color red}SYSTEM ${hr 2}$color$font
Hostname: $nodename
Kernel: $kernel
Uptime: $uptime

${font style=Bold}${color red}CPU${hr 2}$color$font
Load: $loadavg
Core 1 @ ${freq 1}Mhz:  ${cpu cpu1}% ${color red}${cpubar cpu1}$color
Core 2 @ ${freq 2}Mhz:  ${cpu cpu2}% ${color red}${cpubar cpu2}$color
Average: $cpu% ${color red}$cpubar$color
${color red}$cpugraph$color
Name        $alignr          PID       CPU%    MEM%     
 ${top name 1} $alignr    ${top pid 1}  ${top cpu 1}    ${top mem 1}       
 ${top name 2} $alignr    ${top pid 2}  ${top cpu 2}    ${top mem 2}       
 ${top name 3} $alignr    ${top pid 3}  ${top cpu 3}    ${top mem 3}       
 ${top name 4} $alignr    ${top pid 4}  ${top cpu 4}    ${top mem 4}       

${font style=Bold}${color red}MEMORY${hr 2}$color$font
RAM:       $mem/$memmax    $alignc $memperc% ${color red}${membar}$color
Swap:      $swap/$swapmax    $alignc $swapperc% ${color red}${swapbar}$color
Processes: $processes Running: $running_processes
Name        $alignr          PID       CPU%    MEM%     
 ${top_mem name 1}  $alignr    ${top_mem pid 1}  ${top_mem cpu 1}    ${top_mem mem 1}       
 ${top_mem name 2}  $alignr    ${top_mem pid 2}  ${top_mem cpu 2}    ${top_mem mem 2}       
 ${top_mem name 3}  $alignr    ${top_mem pid 3}  ${top_mem cpu 3}    ${top_mem mem 3}       
 ${top_mem name 4}  $alignr    ${top_mem pid 4}  ${top_mem cpu 4}    ${top_mem mem 4}       

${font style=Bold}${color red}DISK ${hr 2}$color$font
home:    ${fs_used /home}/${fs_size /home}  $alignc ${fs_used_perc /home}% ${color red}${fs_bar /home}$color
HDD: ${fs_used /media/HDD}/${fs_size /media/HDD}  $alignc ${fs_used_perc /media/HDD}% ${color red}${fs_bar /media/HDD}$color

${font style=Bold}${color red}NETWORK$font (${addr wlan0}) ${hr 2}$color
Down: ${downspeed wlan0} k/s                    Up: ${upspeed wlan0} k/s
${color red}${downspeedgraph wlan0 25,130} ${alignc} ${upspeedgraph wlan0 25,130}$color
Total: ${totaldown wlan0}                 Total: ${totalup wlan0}

${font style=Bold}${color red}FORTUNE${hr 2}$color$font
${execi 100 fortune -s | fold -w50}

screen:


Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #157 Gepost op: 2009/09/08, 15:45:48 »
Ziet er goed uit schwarzproductions, ik denk dat ik hem van je "leen" als je dat goed vind.
In der Beschränkung zeigt sich der Meister.

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #158 Gepost op: 2009/09/08, 15:47:20 »
Ziet er goed uit schwarzproductions, ik denk dat ik hem van je "leen" als je dat goed vind.
Natuurlijk is dat goed, ik heb hem ook geleend... :D (ik geloof zelf van ergens in dit topic...)

Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #159 Gepost op: 2009/09/08, 16:55:31 »
Lenen? Jatten! XD Allemaal hartelijk bedankt. @schwarzproductions: Het zal wel met reboot te maken hebben, maar het werkt gelukkig.

background no
use_xft yes
xftfont Terminus:size=8
out_to_console no
update_interval 2.5
total_run_times 0
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 2
border_margin 5
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_right
maximum_width 203
minimum_size 203
own_window yes
own_window_colour black
own_window_type override
own_window_transparent no
gap_x 5
gap_y 29
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

TEXT
${color #ff0000}Algemene info${hr}
${color #ddaa00}Naam${alignr}${color}$nodename
${color #ddaa00}Kernel${alignr}${color}$kernel
${color #ddaa00}Datum${alignr} ${color} ${time %e %B %G}
${color #ddaa00}Tijd${alignr}${color}${time %H:%M}
${color #ddaa00}Actief${alignr} ${color}$uptime
${color #ddaa00}IP${alignr}${color}${execi 1 /home/thijs/ip.sh}
${color #ff0000}Hardware info${hr}
${color #ddaa00}Hdd Temp${alignr}${color }${exec nc localhost 7634 | cut -f 4 -d "|"} C
${color #ddaa00}Videokaart Temp${alignr}${color }${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} C
${color #ddaa00}CPU${alignr}${color}${cpu}% ${acpitemp}C
${color #ff0000}Processen${hr}
${color #ddaa00}Highest CPU:
${color slate grey} ${top name 1}$alignr${top cpu 1}%
${color lightgrey} ${top name 2}$alignr${top cpu 2}%
${color lightgrey} ${top name 3}$alignr${top cpu 3}%
${color lightgrey} ${top name 4}$alignr${top cpu 4}%
${color #ddaa00}Highest MEM:
${color slate grey} ${top_mem name 1}$alignr${top_mem mem 1}%
${color lightgrey} ${top_mem name 2}$alignr${top_mem mem 2}%
${color lightgrey} ${top_mem name 3}$alignr${top_mem mem 3}%
${color lightgrey} ${top_mem name 4}$alignr${top_mem mem 4}%
${color #ff0000}Grafieken${hr}
${color #ddaa00}MEM: ${color } $mem${alignr}${color #ddaa00}SWAP:${color} $swap
${membar 5,100}${alignr}${swapbar 5,100}
${color #ddaa00}CPU1${alignr}CPU2${color}
${cpugraph cpu1 30,100 ddaa00 ddaa00}${alignr}${cpugraph cpu2 30,100 ddaa00 ddaa00}
${color #ddaa00}HD${color}, lezen${alignr}${color #ddaa00}HD${color}, schrijven
${color}${diskiograph_read 30,100 ddaa00 ddaa00}${alignr}${color }${diskiograph_write 30,100 ddaa00 ddaa00}
${color #ddaa00}Up: ${color}${upspeed eth0} k/s${alignr}${color #ddaa00}Down: ${color}${downspeed eth0}k/s${color}
${upspeedgraph eth0 30,100 ddaa00 ddaa00}${alignr}${downspeedgraph eth0 30,100 ddaa00 ddaa00}
${color #ddaa00}Total:${color}${totaldown eth0}${alignr}${color #ddaa00}Total: ${color}${totalup eth0}

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #160 Gepost op: 2009/09/08, 18:43:52 »
Ik heb een probleem met deze regel: HDD:   ${fs_used /media/HDD}/${fs_size /media/HDD}  $alignc ${fs_used_perc /media/HDD}% ${color red}${fs_bar /media/HDD}$color
Ik heb nl. 1sata disk van 400GB, 1 IDE van 40 GB en een externe disk van 500 GB, hoe maak ik deze zichtbaar?
In der Beschränkung zeigt sich der Meister.

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #161 Gepost op: 2009/09/08, 18:46:10 »
Ik heb een probleem met deze regel: HDD:   ${fs_used /media/HDD}/${fs_size /media/HDD}  $alignc ${fs_used_perc /media/HDD}% ${color red}${fs_bar /media/HDD}$color
Ik heb nl. 1sata disk van 400GB, 1 IDE van 40 GB en een externe disk van 500 GB, hoe maak ik deze zichtbaar?
Door de juiste regel naar de schijf erin te zetten.
voor je externe wordt dat dan: ${fs_used /media/**naam van je HD**}/${fs_size /media/**naam van je HD**}  $alignc ${fs_used_perc /media/**naam van je HD**}% ${color red}${fs_bar /media/**naam van je HD**}$color
etc

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #162 Gepost op: 2009/09/08, 19:24:23 »
Bedankt schwarzproductions, gelukt.
In der Beschränkung zeigt sich der Meister.


Offline BaukeP

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #164 Gepost op: 2009/09/16, 22:41:23 »
hallo,

Ik heb iets raars. Een kopie van m'n .conkyrc overgezet van m'n laptop naar m'n desktop.
Nu lopen een aantal regels van m'n scherm. Op de laptop werd het conky gedeelte aan de linkerkant iets groter als ik in een regel iets tussenvoegde. Op de desktop schijnt dat anders te werken en loopt een langere regel dus van het scherm (rechts)

Ik kan zo de instelling die hiervoor zorgt niet vinden. Graag wat hulp

Edit: Ik gebruik in alle regels ${alignr}

Alvast bedankt

Bauke
« Laatst bewerkt op: 2009/09/16, 22:49:06 door BaukeP »

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #165 Gepost op: 2009/09/21, 10:40:42 »
mijn conky, zonder systeeminfo of zelfs een klok, maar wel met twee gmail accounts :D



.conkyrc :
background no
use_xft yes
xftfont Rough_typewriter:size=10
out_to_console no
update_interval 2.0
total_run_times 0
own_window no
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 4
border_width 1
default_color black
default_shade_color black
default_outline_color red
alignment bottom_right
maximum_width 240
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
gap_x 100
gap_y 180
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes

TEXT
--Gmail-cola------------
You have ${color}${texeci 60 perl ~/scripts/gmail.pl n} ${color}new mail(s).

${execi 60 perl ~/scripts/gmail.pl s}

--Gmail-jk--------------
You have ${color}${texeci 60 perl ~/scripts/gmail2.pl n} ${color}new mail(s).

${execi 60 perl ~/scripts/gmail2.pl s}

gmail.pl :
#!/usr/bin/perl

use Switch;
use Text::Wrap;

my $what=$ARGV[0];

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail

#wrap format for subject
$Text::Wrap::columns=65; #Number of columns to wrap subject at
$initial_tab=""; #Tab for first line of subject
$subsequent_tab="\t"; #tab for wrapped lines
$quote="\""; #put quotes around subject

#limit the number of emails to be displayed
$emails=4; #if -1 display all emails

&passwd; #give password the proper url character encoding

switch($what){ #determine what the user wants
case "n" {&gmail; print "$new\n";} #print number of new emails
case "s" { #print $from and $subj for new email
&gmail;
if ($new>0){
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote."\n";
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
case "e" { #print number of new emails, $from, and $subj
&gmail;
if($new==0){print "You have no new emails.\n";}
else{
print "You have $new new email(s).\n";
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote;
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
else {
print "Usage Error: gmail.pl <option>\n";
print "\tn displays number of new emails\n";
print "\ts displays from line and subject line for each new email.\n";
print "\te displays the number of new emails and from line plus \n";
print "\t\tsubject line for each new email.\n";
} #didn't give proper option
}

sub gmail{
if(!(-e $file)){ #create file if it does not exists
`touch $file`;
}

#get new emails
`wget -O - https://$user:$pass\@mail.google.com/mail/feed/atom --no-check-certificate> $file`;

open(IN, $file); #open $file

my $i=0; #initialize count
$new=0; #initialize new emails to 0

my $flag=0;

while(<IN>){ #cycle through $file
if(/<entry>/){$flag=1;}
elsif(/<fullcount>(\d+)<\/fullcount>/){$new=$1;} #grab number of new emails
elsif($flag==1){
if(/<title>.+<\/title>/){push(@subj, &msg);} #grab new email titles
elsif(/<name>(.+)<\/name>/){push(@from, $1); $flag=0;} #grab new email from lines
}
}

close(IN); #close $file
}

sub passwd{ #change to url escape codes in password
#URL ESCAPE CODES
$_=$pass;
s/\%/\%25/g;
s/\#/\%23/g;
s/\$/\%24/g;
s/\&/\%26/g;
s/\//\%2F/g;
s/\:/\%3A/g;
s/\;/\%3B/g;
s/\</\%3C/g;
s/\=/\%3D/g;
s/\>/\%3E/g;
s/\?/\%3F/g;
s/\@/\%40/g;
s/\[/\%5B/g;
s/\\/\%5C/g;
s/\]/\%5D/g;
s/\^/\%5E/g;
s/\`/\%60/g;
s/\{/\%7B/g;
s/\|/\%7C/g;
s/\}/\%7D/g;
s/\~/\%7E/g;
$pass=$_;
}

sub msg{
#THE HTML CODED CHARACTER SET [ISO-8859-1]
chomp; s/<title>(.+)<\/title>/$1/; #get just the subject
#now replace any special characters
s/\&\#33\;/!/g;        #Exclamation mark
s/\&\#34\;/"/g; s/\&quot\;/"/g;      #Quotation mark
s/\&\#35\;/#/g;        #Number sign
s/\&\#36\;/\$/g;        #Dollar sign
s/\&\#37\;/%/g;        #Percent sign
s/\&\#38\;/&/g; s/\&amp\;/&/g;        #Ampersand
s/\&\#39\;/'/g;        #Apostrophe
s/\&\#40\;/(/g;        #Left parenthesis
s/\&\#41\;/)/g;        #Right parenthesis
s/\&\#42\;/*/g;        #Asterisk
s/\&\#43\;/+/g;        #Plus sign
s/\&\#44\;/,/g;        #Comma
s/\&\#45\;/-/g;        #Hyphen
s/\&\#46\;/./g;        #Period (fullstop)
s/\&\#47\;/\//g;        #Solidus (slash)
s/\&\#58\;/:/g;        #Colon
s/\&\#59\;/\;/g;        #Semi-colon
s/\&\#60\;/</g; s/\&lt\;/</g;        #Less than
s/\&\#61\;/=/g;        #Equals sign
s/\&\#62\;/>/g; s/\&gt\;/>/g;        #Greater than
s/\&\#63\;/\?/g;        #Question mark
s/\&\#64\;/\@/g;        #Commercial at
s/\&\#91\;/\[/g;        #Left square bracket
s/\&\#92\;/\\/g;        #Reverse solidus (backslash)
s/\&\#93\;/\]/g;        #Right square bracket
s/\&\#94\;/\^/g;        #Caret
s/\&\#95\;/_/g;        #Horizontal bar (underscore)
s/\&\#96\;/\`/g;        #Acute accent
s/\&\#123\;/\{/g;        #Left curly brace
s/\&\#124\;/|/g;        #Vertical bar
s/\&\#125\;/\}/g;        #Right curly brace
s/\&\#126\;/~/g;        #Tilde
s/\&\#161\;/¡/g;        #Inverted exclamation
s/\&\#162\;/¢/g;        #Cent sign
s/\&\#163\;/£/g;        #Pound sterling
s/\&\#164\;/¤/g;        #General currency sign
s/\&\#165\;/¥/g;        #Yen sign
s/\&\#166\;/¦/g;        #Broken vertical bar
s/\&\#167\;/§/g;        #Section sign
s/\&\#168\;/¨/g;        #Umlaut (dieresis)
s/\&\#169\;/©/g; s/\&copy\;/©/g;        #Copyright
s/\&\#170\;/ª/g;        #Feminine ordinal
s/\&\#171\;/«/g;        #Left angle quote, guillemotleft
s/\&\#172\;/¬/g;        #Not sign
s/\&\#174\;/®/g;        #Registered trademark
s/\&\#175\;/¯/g;        #Macron accent
s/\&\#176\;/°/g;        #Degree sign
s/\&\#177\;/±/g;        #Plus or minus
s/\&\#178\;/²/g;        #Superscript two
s/\&\#179\;/³/g;        #Superscript three
s/\&\#180\;/´/g;        #Acute accent
s/\&\#181\;/µ/g;        #Micro sign
s/\&\#182\;/¶/g;        #Paragraph sign
s/\&\#183\;/·/g;        #Middle dot
s/\&\#184\;/¸/g;        #Cedilla
s/\&\#185\;/¹/g;        #Superscript one
s/\&\#186\;/º/g;        #Masculine ordinal
s/\&\#187\;/»/g;        #Right angle quote, guillemotright
s/\&\#188\;/¼/g; s/\&frac14\;/¼/g;       # Fraction one-fourth
s/\&\#189\;/½/g; s/\&frac12\;/½/g;       # Fraction one-half
s/\&\#190\;/¾/g; s/\&frac34\;/¾/g;       # Fraction three-fourths
s/\&\#191\;/¿/g;        #Inverted question mark
s/\&\#192\;/À/g;        #Capital A, grave accent
s/\&\#193\;/Á/g;        #Capital A, acute accent
s/\&\#194\;/Â/g;        #Capital A, circumflex accent
s/\&\#195\;/Ã/g;        #Capital A, tilde
s/\&\#196\;/Ä/g;        #Capital A, dieresis or umlaut mark
s/\&\#197\;/Å/g;        #Capital A, ring
s/\&\#198\;/Æ/g;        #Capital AE dipthong (ligature)
s/\&\#199\;/Ç/g;        #Capital C, cedilla
s/\&\#200\;/È/g;        #Capital E, grave accent
s/\&\#201\;/É/g;        #Capital E, acute accent
s/\&\#202\;/Ê/g;        #Capital E, circumflex accent
s/\&\#203\;/Ë/g;        #Capital E, dieresis or umlaut mark
s/\&\#204\;/Ì/g;        #Capital I, grave accent
s/\&\#205\;/Í/g;        #Capital I, acute accent
s/\&\#206\;/Î/g;        #Capital I, circumflex accent
s/\&\#207\;/Ï/g;        #Capital I, dieresis or umlaut mark   
s/\&\#208\;/Ð/g;        #Capital Eth, Icelandic
s/\&\#209\;/Ñ/g;        #Capital N, tilde
s/\&\#210\;/Ò/g;        #Capital O, grave accent
s/\&\#211\;/Ó/g;        #Capital O, acute accent
s/\&\#212\;/Ô/g;        #Capital O, circumflex accent
s/\&\#213\;/Õ/g;        #Capital O, tilde
s/\&\#214\;/Ö/g;        #Capital O, dieresis or umlaut mark
s/\&\#215\;/×/g;        #Multiply sign
s/\&\#216\;/Ø/g;        #Capital O, slash
s/\&\#217\;/Ù/g;        #Capital U, grave accent
s/\&\#218\;/Ú/g;        #Capital U, acute accent
s/\&\#219\;/Û/g;        #Capital U, circumflex accent
s/\&\#220\;/Ü/g;        #Capital U, dieresis or umlaut mark
s/\&\#221\;/Ý/g;        #Capital Y, acute accent
s/\&\#222\;/Þ/g;        #Capital THORN, Icelandic
s/\&\#223\;/ß/g;        #Small sharp s, German (sz ligature)
s/\&\#224\;/à/g;        #Small a, grave accent
s/\&\#225\;/á/g;        #Small a, acute accent
s/\&\#226\;/â/g;        #Small a, circumflex accent
s/\&\#227\;/ã/g;        #Small a, tilde
s/\&\#228\;/ä/g;        #Small a, dieresis or umlaut mark
s/\&\#229\;/å/g;        #Small a, ring
s/\&\#230\;/æ/g;        #Small ae dipthong (ligature)
s/\&\#231\;/ç/g;        #Small c, cedilla
s/\&\#232\;/è/g;        #Small e, grave accent
s/\&\#233\;/é/g;        #Small e, acute accent
s/\&\#234\;/ê/g;        #Small e, circumflex accent
s/\&\#235\;/ë/g;        #Small e, dieresis or umlaut mark
s/\&\#236\;/ì/g;        #Small i, grave accent
s/\&\#237\;/í/g;        #Small i, acute accent
s/\&\#238\;/î/g;        #Small i, circumflex accent
s/\&\#239\;/ï/g;        #Small i, dieresis or umlaut mark
s/\&\#240\;/ð/g;        #Small eth, Icelandic
s/\&\#241\;/ñ/g;        #Small n, tilde
s/\&\#242\;/ò/g;        #Small o, grave accent
s/\&\#243\;/ó/g;        #Small o, acute accent
s/\&\#244\;/ô/g;        #Small o, circumflex accent
s/\&\#245\;/õ/g;        #Small o, tilde
s/\&\#246\;/ö/g;        #Small o, dieresis or umlaut mark
s/\&\#247\;/÷/g;        #Division sign
s/\&\#248\;/ø/g;        #Small o, slash
s/\&\#249\;/ù/g;        #Small u, grave accent
s/\&\#250\;/ú/g;        #Small u, acute accent
s/\&\#251\;/û/g;        #Small u, circumflex accent
s/\&\#252\;/ü/g;        #Small u, dieresis or umlaut mark
s/\&\#253\;/ý/g;        #Small y, acute accent
s/\&\#254\;/þ/g;        #Small thorn, Icelandic
s/\&\#255\;/ÿ/g;        #Small y, dieresis or umlaut mark
s/^\s+//;
return $_;
}

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #166 Gepost op: 2009/09/21, 10:41:34 »
en, omdat ik over de maximale 20000 tekens zat :rolleyes: hier de rest:
gmail2.pl :
#!/usr/bin/perl

use Switch;
use Text::Wrap;

my $what=$ARGV[0];

$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail2.html"; #temporary file to store gmail

#wrap format for subject
$Text::Wrap::columns=65; #Number of columns to wrap subject at
$initial_tab=""; #Tab for first line of subject
$subsequent_tab="\t"; #tab for wrapped lines
$quote="\""; #put quotes around subject

#limit the number of emails to be displayed
$emails=4; #if -1 display all emails

&passwd; #give password the proper url character encoding

switch($what){ #determine what the user wants
case "n" {&gmail2; print "$new\n";} #print number of new emails
case "s" { #print $from and $subj for new email
&gmail2;
if ($new>0){
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote."\n";
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
case "e" { #print number of new emails, $from, and $subj
&gmail2;
if($new==0){print "You have no new emails.\n";}
else{
print "You have $new new email(s).\n";
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote;
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
else {
print "Usage Error: gmail2.pl <option>\n";
print "\tn displays number of new emails\n";
print "\ts displays from line and subject line for each new email.\n";
print "\te displays the number of new emails and from line plus \n";
print "\t\tsubject line for each new email.\n";
} #didn't give proper option
}

sub gmail2{
if(!(-e $file)){ #create file if it does not exists
`touch $file`;
}

#get new emails
`wget -O - https://$user:$pass\@mail.google.com/mail/feed/atom --no-check-certificate> $file`;

open(IN, $file); #open $file

my $i=0; #initialize count
$new=0; #initialize new emails to 0

my $flag=0;

while(<IN>){ #cycle through $file
if(/<entry>/){$flag=1;}
elsif(/<fullcount>(\d+)<\/fullcount>/){$new=$1;} #grab number of new emails
elsif($flag==1){
if(/<title>.+<\/title>/){push(@subj, &msg);} #grab new email titles
elsif(/<name>(.+)<\/name>/){push(@from, $1); $flag=0;} #grab new email from lines
}
}

close(IN); #close $file
}

sub passwd{ #change to url escape codes in password
#URL ESCAPE CODES
$_=$pass;
s/\%/\%25/g;
s/\#/\%23/g;
s/\$/\%24/g;
s/\&/\%26/g;
s/\//\%2F/g;
s/\:/\%3A/g;
s/\;/\%3B/g;
s/\</\%3C/g;
s/\=/\%3D/g;
s/\>/\%3E/g;
s/\?/\%3F/g;
s/\@/\%40/g;
s/\[/\%5B/g;
s/\\/\%5C/g;
s/\]/\%5D/g;
s/\^/\%5E/g;
s/\`/\%60/g;
s/\{/\%7B/g;
s/\|/\%7C/g;
s/\}/\%7D/g;
s/\~/\%7E/g;
$pass=$_;
}

sub msg{
#THE HTML CODED CHARACTER SET [ISO-8859-1]
chomp; s/<title>(.+)<\/title>/$1/; #get just the subject
#now replace any special characters
s/\&\#33\;/!/g;        #Exclamation mark
s/\&\#34\;/"/g; s/\&quot\;/"/g;      #Quotation mark
s/\&\#35\;/#/g;        #Number sign
s/\&\#36\;/\$/g;        #Dollar sign
s/\&\#37\;/%/g;        #Percent sign
s/\&\#38\;/&/g; s/\&amp\;/&/g;        #Ampersand
s/\&\#39\;/'/g;        #Apostrophe
s/\&\#40\;/(/g;        #Left parenthesis
s/\&\#41\;/)/g;        #Right parenthesis
s/\&\#42\;/*/g;        #Asterisk
s/\&\#43\;/+/g;        #Plus sign
s/\&\#44\;/,/g;        #Comma
s/\&\#45\;/-/g;        #Hyphen
s/\&\#46\;/./g;        #Period (fullstop)
s/\&\#47\;/\//g;        #Solidus (slash)
s/\&\#58\;/:/g;        #Colon
s/\&\#59\;/\;/g;        #Semi-colon
s/\&\#60\;/</g; s/\&lt\;/</g;        #Less than
s/\&\#61\;/=/g;        #Equals sign
s/\&\#62\;/>/g; s/\&gt\;/>/g;        #Greater than
s/\&\#63\;/\?/g;        #Question mark
s/\&\#64\;/\@/g;        #Commercial at
s/\&\#91\;/\[/g;        #Left square bracket
s/\&\#92\;/\\/g;        #Reverse solidus (backslash)
s/\&\#93\;/\]/g;        #Right square bracket
s/\&\#94\;/\^/g;        #Caret
s/\&\#95\;/_/g;        #Horizontal bar (underscore)
s/\&\#96\;/\`/g;        #Acute accent
s/\&\#123\;/\{/g;        #Left curly brace
s/\&\#124\;/|/g;        #Vertical bar
s/\&\#125\;/\}/g;        #Right curly brace
s/\&\#126\;/~/g;        #Tilde
s/\&\#161\;/¡/g;        #Inverted exclamation
s/\&\#162\;/¢/g;        #Cent sign
s/\&\#163\;/£/g;        #Pound sterling
s/\&\#164\;/¤/g;        #General currency sign
s/\&\#165\;/¥/g;        #Yen sign
s/\&\#166\;/¦/g;        #Broken vertical bar
s/\&\#167\;/§/g;        #Section sign
s/\&\#168\;/¨/g;        #Umlaut (dieresis)
s/\&\#169\;/©/g; s/\&copy\;/©/g;        #Copyright
s/\&\#170\;/ª/g;        #Feminine ordinal
s/\&\#171\;/«/g;        #Left angle quote, guillemotleft
s/\&\#172\;/¬/g;        #Not sign
s/\&\#174\;/®/g;        #Registered trademark
s/\&\#175\;/¯/g;        #Macron accent
s/\&\#176\;/°/g;        #Degree sign
s/\&\#177\;/±/g;        #Plus or minus
s/\&\#178\;/²/g;        #Superscript two
s/\&\#179\;/³/g;        #Superscript three
s/\&\#180\;/´/g;        #Acute accent
s/\&\#181\;/µ/g;        #Micro sign
s/\&\#182\;/¶/g;        #Paragraph sign
s/\&\#183\;/·/g;        #Middle dot
s/\&\#184\;/¸/g;        #Cedilla
s/\&\#185\;/¹/g;        #Superscript one
s/\&\#186\;/º/g;        #Masculine ordinal
s/\&\#187\;/»/g;        #Right angle quote, guillemotright
s/\&\#188\;/¼/g; s/\&frac14\;/¼/g;       # Fraction one-fourth
s/\&\#189\;/½/g; s/\&frac12\;/½/g;       # Fraction one-half
s/\&\#190\;/¾/g; s/\&frac34\;/¾/g;       # Fraction three-fourths
s/\&\#191\;/¿/g;        #Inverted question mark
s/\&\#192\;/À/g;        #Capital A, grave accent
s/\&\#193\;/Á/g;        #Capital A, acute accent
s/\&\#194\;/Â/g;        #Capital A, circumflex accent
s/\&\#195\;/Ã/g;        #Capital A, tilde
s/\&\#196\;/Ä/g;        #Capital A, dieresis or umlaut mark
s/\&\#197\;/Å/g;        #Capital A, ring
s/\&\#198\;/Æ/g;        #Capital AE dipthong (ligature)
s/\&\#199\;/Ç/g;        #Capital C, cedilla
s/\&\#200\;/È/g;        #Capital E, grave accent
s/\&\#201\;/É/g;        #Capital E, acute accent
s/\&\#202\;/Ê/g;        #Capital E, circumflex accent
s/\&\#203\;/Ë/g;        #Capital E, dieresis or umlaut mark
s/\&\#204\;/Ì/g;        #Capital I, grave accent
s/\&\#205\;/Í/g;        #Capital I, acute accent
s/\&\#206\;/Î/g;        #Capital I, circumflex accent
s/\&\#207\;/Ï/g;        #Capital I, dieresis or umlaut mark  
s/\&\#208\;/Ð/g;        #Capital Eth, Icelandic
s/\&\#209\;/Ñ/g;        #Capital N, tilde
s/\&\#210\;/Ò/g;        #Capital O, grave accent
s/\&\#211\;/Ó/g;        #Capital O, acute accent
s/\&\#212\;/Ô/g;        #Capital O, circumflex accent
s/\&\#213\;/Õ/g;        #Capital O, tilde
s/\&\#214\;/Ö/g;        #Capital O, dieresis or umlaut mark
s/\&\#215\;/×/g;        #Multiply sign
s/\&\#216\;/Ø/g;        #Capital O, slash
s/\&\#217\;/Ù/g;        #Capital U, grave accent
s/\&\#218\;/Ú/g;        #Capital U, acute accent
s/\&\#219\;/Û/g;        #Capital U, circumflex accent
s/\&\#220\;/Ü/g;        #Capital U, dieresis or umlaut mark
s/\&\#221\;/Ý/g;        #Capital Y, acute accent
s/\&\#222\;/Þ/g;        #Capital THORN, Icelandic
s/\&\#223\;/ß/g;        #Small sharp s, German (sz ligature)
s/\&\#224\;/à/g;        #Small a, grave accent
s/\&\#225\;/á/g;        #Small a, acute accent
s/\&\#226\;/â/g;        #Small a, circumflex accent
s/\&\#227\;/ã/g;        #Small a, tilde
s/\&\#228\;/ä/g;        #Small a, dieresis or umlaut mark
s/\&\#229\;/å/g;        #Small a, ring
s/\&\#230\;/æ/g;        #Small ae dipthong (ligature)
s/\&\#231\;/ç/g;        #Small c, cedilla
s/\&\#232\;/è/g;        #Small e, grave accent
s/\&\#233\;/é/g;        #Small e, acute accent
s/\&\#234\;/ê/g;        #Small e, circumflex accent
s/\&\#235\;/ë/g;        #Small e, dieresis or umlaut mark
s/\&\#236\;/ì/g;        #Small i, grave accent
s/\&\#237\;/í/g;        #Small i, acute accent
s/\&\#238\;/î/g;        #Small i, circumflex accent
s/\&\#239\;/ï/g;        #Small i, dieresis or umlaut mark
s/\&\#240\;/ð/g;        #Small eth, Icelandic
s/\&\#241\;/ñ/g;        #Small n, tilde
s/\&\#242\;/ò/g;        #Small o, grave accent
s/\&\#243\;/ó/g;        #Small o, acute accent
s/\&\#244\;/ô/g;        #Small o, circumflex accent
s/\&\#245\;/õ/g;        #Small o, tilde
s/\&\#246\;/ö/g;        #Small o, dieresis or umlaut mark
s/\&\#247\;/÷/g;        #Division sign
s/\&\#248\;/ø/g;        #Small o, slash
s/\&\#249\;/ù/g;        #Small u, grave accent
s/\&\#250\;/ú/g;        #Small u, acute accent
s/\&\#251\;/û/g;        #Small u, circumflex accent
s/\&\#252\;/ü/g;        #Small u, dieresis or umlaut mark
s/\&\#253\;/ý/g;        #Small y, acute accent
s/\&\#254\;/þ/g;        #Small thorn, Icelandic
s/\&\#255\;/ÿ/g;        #Small y, dieresis or umlaut mark
s/^\s+//;
return $_;
}

heb het overigens natuurlijk allemaal niet zelf verzonnen, maar ergens op een of ander forum een conky gevonden waar gmail in zat, en al het andere eruit gesloopt, en een tweede gmail erbij gevogeld. toch nog vrij geniaal van een n00b als mezelf, al zeg ik het zelf  :D
« Laatst bewerkt op: 2009/09/21, 10:43:52 door colapunk »

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #167 Gepost op: 2009/09/21, 18:03:45 »
hallo,

Ik heb iets raars. Een kopie van m'n .conkyrc overgezet van m'n laptop naar m'n desktop.
Nu lopen een aantal regels van m'n scherm. Op de laptop werd het conky gedeelte aan de linkerkant iets groter als ik in een regel iets tussenvoegde. Op de desktop schijnt dat anders te werken en loopt een langere regel dus van het scherm (rechts)

Ik kan zo de instelling die hiervoor zorgt niet vinden. Graag wat hulp

Edit: Ik gebruik in alle regels ${alignr}

Alvast bedankt

Bauke

Misschien heb je iets aan de fold regel? >> | fold -w47}
Ik gebruik het in combinatie met execi (${execi 100 fortune -s | fold -w47}); maar me dunkt moet dit met andere argumenten ook lukken. Het getal na de -w is het aantal tekens dat wordt weergegeven, hierna wordt de regel afgesplitst.

Offline BaukeP

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #168 Gepost op: 2009/09/24, 16:31:59 »
Ga het proberen! Bedankt!

Bauke

Offline TopGear

  • Forumteam
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #169 Gepost op: 2009/10/03, 11:02:03 »
Hoe maak ik zoiets moois? Ik heb alleen:

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #170 Gepost op: 2009/10/03, 11:07:37 »
Door een .conkyrc te kopiëren van iemand en in je eigen .conkyrc te plakken heb je op jou computer de zelfde conky. Deze kan je dan zelf weer helemaal naar je eigen wens aanpassen.
In der Beschränkung zeigt sich der Meister.

Offline TopGear

  • Forumteam
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #171 Gepost op: 2009/10/03, 12:57:55 »
1. Waar staat die .conryc?
2. Hoe installeer ik er iets bij?
3. Hoe maak ik hem doorzichtig?

Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #172 Gepost op: 2009/10/03, 14:38:28 »
Citaat
1. Waar staat die .conryc?
locate conkyrc
Citaat
2. Hoe installeer ik er iets bij?
Google -> "conky wiki" of Google -> "conky user guide"
Citaat
3. Hoe maak ik hem doorzichtig?
Idem.

Offline Thijsg

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #173 Gepost op: 2009/10/04, 15:37:01 »
/home/peter/.conkyrc

Code toevoegen aan tekstbestand

In post #154 staat mijn configuratie, ergens aan het begin staat transparancy, wat zou je daarachter in moeten vullen?

Offline Jan E.

  • Lid
Re: Post hier je .conkyrc plus een screenshot ;)
« Reactie #174 Gepost op: 2009/10/05, 18:11:48 »
Hoi!

Ik ben door dit draadje ook aan de conky gegaan. En ik wil graag die weersvoorspelling, zoals in post 117. Maar wat ik ook probeer, het wil niet lukken. Ik doe dus iets vaud.

Wie helpt me een eindje op weg?



Dell Vostro 3360
Ubuntu 20.04