You are not logged in.

#1 2010-03-03 15:29:19

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

recommended pacman updates conky script?

Hi,
I have been trying some of the conky pacman updates scripts on the forum/wiki.
So far they either say my system is up to date when in fact pacman -Syu shows otherwise, or they fail to give any info at all.

Can anybody recommend a conky script that is working at this moment in time?:/

Last edited by ancleessen4 (2010-03-03 15:29:45)

Offline

#2 2010-03-03 15:41:42

userlander
Member
Registered: 2008-08-23
Posts: 413

Re: recommended pacman updates conky script?

I use this one:

#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`pacman -Qu | wc -l`);
chomp ($n);
if ($n == 0)
{
     print "No new packages"
}
elsif($n == 1)
{
     print "1 new package"
}
else
{
print "$n new packages "
}

in conky I have:
${execi 30 /path/to/pacman-updates}

Then just put a pacman -Sy in crontab to do the checking every half hour or whatever.

Offline

#3 2010-03-03 16:16:36

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: recommended pacman updates conky script?

#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`pacman -Qu | wc -l`);
chomp ($n);
if ($n == 0)
{
     print "Pacman is happy! :)"
}
else
{
     print "Pacman is sad! :("
}

Offline

#4 2010-03-03 16:41:25

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: recommended pacman updates conky script?

Hi userlander and whacath-thanks for the input.
It looks like I am getting somewhere now with "Pacman is sad!" indeed correct!
After pacman -Syu "Pacman is happy!"...perfect!

Offline

#5 2010-03-03 16:48:42

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: recommended pacman updates conky script?

For pretty output, look here.

Three solutions so far, and both are by Xyne. Interesting. smile

Last edited by Runiq (2010-03-03 23:32:46)

Offline

#6 2010-03-03 18:00:05

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: recommended pacman updates conky script?

Looking good-paconky installed!

Offline

#7 2010-03-03 23:23:27

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: recommended pacman updates conky script?

Runiq wrote:

For prettier output, look here.

Two solutions so far, and both are by Xyne. Interesting. smile

The second one is modified by me, that is very important to remeber! wink

Offline

#8 2010-03-03 23:30:58

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: recommended pacman updates conky script?

whacath wrote:

The second one is modified by me, that is very important to remeber!

Post edited accordingly. wink

Last edited by Runiq (2010-03-03 23:31:28)

Offline

#9 2010-03-04 15:53:05

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: recommended pacman updates conky script?

A combo of update scripts!

paconky.jpg

They both appear to work well-perfect!:D

Offline

#10 2010-03-04 17:19:30

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: recommended pacman updates conky script?

ancleessen4 wrote:

A combo of update scripts!

http://neilhoughton.com/wp-content/uplo … aconky.jpg

They both appear to work well-perfect!:D

Wow, awesome! I demand to see your .conkyrc!

Offline

#11 2010-03-04 18:46:31

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 121
Website

Re: recommended pacman updates conky script?

Sure-heavily plagiairized from either arch or ubuntu threads...a work in progress...;)
If I find it back I will honour the original author...

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
own_window_colour brown
own_window_transparent yes
own_window_hints below

background no
maximum_width 200

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right

# Update interval in seconds
update_interval 1

# Minimum size of text area
minimum_size 350 5

# Draw shades?
draw_shades yes


draw_borders no
# Stippled borders?
# stippled_borders 8
# window.border_inner_margin 4
border_width 2


# Default colors and also border colors, grey90 == #e5e5e5
default_color white
default_shade_color black
default_outline_color white



# 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
gap_x 10
gap_y 30

# Text stuff
draw_outline no # amplifies text if yes
uppercase no # set to yes if you want all text to be in uppercase
override_utf8_locale no
use_xft yes
xftfont Terminus:size=9
#xftfont Sans:size=8
xftalpha 0.8

text_buffer_size 768

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

color1 333333
color2 cccccc
color3 ddaa00


########## BEGIN FORMATTED DISPLAY ##########
TEXT
${font :size=15}${color red}${alignc}${execi 6000 hostname}${font}${color }
${font :size=8}${alignc}${color lightgrey}$kernel${font}${color }
${hr 1}
${color slate grey}UpTime: ${alignr}${color lightgrey}$uptime${color }

${font StyleBats:size=17}k${font Terminus:size=12} CPU ${font}${hr 2}
${color slate grey}CPU:${color } ${cpu cpu0}% ${cpu cpu1}% ${alignr}${color }$loadavg
${alignc}${cpugraph cpu0 20,90 000000 ffffff} ${cpugraph cpu1 20,90 000000 ffffff}

${color slate grey}cpu0: ${alignr}${color lightgrey}${execi 5 sensors | grep "Core 0" | cut -d "+" -f2 | cut -c1-2}C${color }
${color slate grey}cpu1: ${alignr}${color lightgrey}${execi 5 sensors | grep "Core 1" | cut -d "+" -f2 | cut -c1-2}C${color }
${color slate grey}sda: ${alignr}${color lightgrey}${execi 30 hddtemp /dev/sda |  cut -c 31-33}C

${color slate grey}Processes: ${color }${alignr}$processes  
${color slate grey}Running:   ${color }${alignr}$running_processes

${color slate grey}Top CPU:
${color #ddaa00} ${top name 1}${alignr}${top_mem 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 lightgrey} ${top name 5}${alignr}${top cpu 5}
${color lightgrey} ${top name 6}${alignr}${top cpu 6}

${font StyleBats:size=17}M${font Terminus:size=12} MEMORY ${font}${hr 2}
${color slate grey}RAM: ${alignr}${membar 5,100}
${color slate grey}SWAP: ${alignr}${swapbar 5,100}
${color slate grey}ROOT: ${alignr}${fs_bar 5,100 /}
${color slate grey}HOME: ${alignr}${fs_bar 5,100 /home}

${color slate grey}Top Memory:
${color #ddaa00} ${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}

${font StyleBats:size=17}5${font Terminus:size=12} NETWORK ${font}${hr 2}
${color slate grey}Local IP: ${alignr}${color }${addr eth0}
${color slate grey}Public IP: ${alignr}${color }${execi 450 ~/.scripts/externip.sh}

${color}Up: ${color }${upspeed eth0} k/s
${alignc}${upspeedgraph eth0 20,170 000000 ffffff}
${color}Down: ${color }${downspeed eth0}k/s${color}
${alignc}${downspeedgraph eth0 20,170 000000 ffffff}

${font StyleBats:size=17}v${font Terminus:size=12} UPDATES ${font}${hr 2}
${execpi 60 /home/neil/.scripts/pacman-update}${color}
${execpi 3600 paconky /home/neil/.scripts/repos.paconky}
${execpi 3600 paconky /home/neil/.scripts/aur.paconky}
${voffset 900}

Current screen grab;

http://neilhoughton.com/wp-content/uplo … nshot3.png

Offline

#12 2010-03-05 00:15:44

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: recommended pacman updates conky script?

ancleessen4 wrote:

A combo of update scripts!

http://neilhoughton.com/wp-content/uplo … aconky.jpg

They both appear to work well-perfect!:D

I feel like a grandpa!

Offline

Board footer

Powered by FluxBB