Sida 6 av 12
SV: Posta din .conkyrc
Postat: 10 jan 2008, 22:45
av pl1sk3n
Jag tog bort °ringen sas i conkyrc & då vart jag av med Å.
Hellre enbart C än °C tycker jag.
Av nån anledning så har jag inte fått in tempen än,
varken före lr efter borttagning av ° ringen

Funkar din Hund, hur gjorde du lr gick det på en gång?
SV: Posta din .conkyrc
Postat: 10 jan 2008, 23:07
av Hund
pl1sk3n skrev:
Jag tog bort °ringen sas i conkyrc & då vart jag av med Å.
Hellre enbart C än °C tycker jag.
Av nån anledning så har jag inte fått in tempen än,
varken före lr efter borttagning av ° ringen

Funkar din Hund, hur gjorde du lr gick det på en gång?
Den enda texten är ju:
Hur får man då bort "°"?
Har du installerat paketet
hddtemp?
SV: Posta din .conkyrc
Postat: 11 jan 2008, 10:58
av pl1sk3n
Använder du inte Lulle's script?
Om du gör det så tar du bara bort °ringen innan C
CPU1: ${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}
°C
CPU2: ${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp3_input | cut -c1,2}°C
Ditt kodstycke säjer ju iofs nått annat.
Klarar hddtemp även av cpu?
Provade att lägga in 1 hddtemp men den visar bara N/A.
Jag har labbat med en mängd olika script.
Min conky har delar från både höger & vänster sas
Lägger in den här om nån är intresserad
Kod: Markera allt
${color #00ff00}pl1sk3n${color #888888}@${color red}$nodename:
${color #888888}$sysname $kernel ${color #CCCCCC}on ${color #888888}$machine bit
${color #888888}Uptime: $uptime
${color #888888}${time %a,}${time %e %B %G} ${color #00ff00}${time %H:%M:%S}
${color white}${hr 2}
${color #ffccaa}System:
${color #888888}cpu1: ${color #CCCCCC}${freq cpu0} MHz ${color #888888}load: ${color #CCCCCC}${cpu cpu0}% ${color #888888}Core1 Temp: ${color #CCCCCC}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}C
${color #888888}cup2: ${color #CCCCCC}${freq cpu1} MHz ${color #888888}load: ${color #CCCCCC}${cpu cpu1}% ${color #888888}Core2 Temp: ${color #CCCCCC}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp3_input | cut -c1,2}C
${color #888888}${cpugraph 25 ff0000 ff00ff}
${color #888888}avg load: (${color #CCCCCC}$loadavg${color #888888})
${color #888888}processes: ${color #CCCCCC}$processes ${color #888888}running: ${color #CCCCCC}$running_processes
${color #888888}ram: ${color #CCCCCC}$mem${color #888888}/${color #CCCCCC}$memmax ${color #888888}, ${color #CCCCCC}$memperc%
${color #888888}GPU Nvidia ${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}C
${color #888888}Battery: $color${battery} ${hddtemp /dev/sda1}
${color white}${hr 1}
${color #ffccaa}Wireless Network: ${color #888888}essid: $color${execi 5 iwconfig wlan0 | sed 's/ /\n/g' | grep ESSID | sed 's/ESSID:"//'| sed 's/"//'}
${color #888888}ip address: ${color #CCCCCC}${addr wlan0}
${color #888888}link status: $color${execi 2 iwconfig wlan0 | sed 's/ /\n/g' | grep Quality | sed 's/Link Quality://' | sed 's/Link Quality=//' | sed 's/ //g' } ${color #C2C3F3}s: $color${execi 5 iwconfig wlan0 | sed 's/ /\n/g' | grep Signal | sed 's/Signal level=//' | sed 's/Signal level://' }
${color #888888}total download: ${color #CCCCCC}${totaldown wlan0} ${color #888888}download speed: ${color #CCCCCC}${downspeed wlan0} k/s
${color #888888}${downspeedgraph wlan0 25,100 ff0000 0000ff}
${color #888888}total upload: ${color #CCCCCC}${totalup wlan0} ${color #888888}upload speed: ${color #CCCCCC}${upspeed wlan0} k/s
${color #888888}${upspeedgraph wlan0 25,100 0000ff ff0000}
${color white}${hr 1}
${color #ffccaa}File Systems:
${color #888888}ubuntu root: ${color #CCCCCC}${fs_used /}${color #888888}/${color #CCCCCC}${fs_size /} ${color #888888}(${color #CCCCCC}${fs_free /}, ${fs_free_perc /}% ${color #888888}free)
${fs_bar /}
${color #888888}win resque: ${color #CCCCCC}${fs_used /sda1}${color #888888}/${color #CCCCCC}${fs_size /sda1} ${color #888888}(${color #CCCCCC}${fs_free /sda1}, ${fs_free_perc /sda1}% ${color #888888}free)
${fs_bar /sda1}
${color #888888}vista: ${color #CCCCCC}${fs_used /media/sda2}${color #888888}/${color #CCCCCC}${fs_size /media/sda1} ${color #888888}(${color #CCCCCC}${fs_free /media/sda2}, ${fs_free_perc /media/sda2}% ${color #888888}free)
${fs_bar /media/sda2}
${color #888888}store ntfs: ${color #CCCCCC}${fs_used /media/sda4}${color #888888}/${color #CCCCCC}${fs_size /media/sda4} ${color #888888}(${color #CCCCCC}${fs_free /media/sda4}, ${fs_free_perc /media/sda4}% ${color #888888}free)
${fs_bar /media/sda4}
${color #888888}extended: ${color #CCCCCC}${fs_used /media/sda3}${color #888888}/${color #CCCCCC}${fs_size /media/sda3} ${color #888888}(${color #CCCCCC}${fs_free /media/sda3}, ${fs_free_perc /media/sda3}% ${color #888888}free)
${fs_bar /media/sda3}
${color #888888}mandriva: ${color #CCCCCC}${fs_used /media/sda5}${color #888888}/${color #CCCCCC}${fs_size /media/sda5} ${color #888888}(${color #CCCCCC}${fs_free /media/sda5}, ${fs_free_perc /media/sda5}% ${color #888888}free)
${fs_bar /media/sda5}
${color #888888}swap: ${color #CCCCCC}${fs_used /media/sda6}${color #888888}/${color #CCCCCC}${fs_size /media/sda6} ${color #888888}(${color #CCCCCC}${fs_free /media/sda6}, ${fs_free_perc /media/sda6}% ${color #888888}free)
${fs_bar /media/sda6}
${color #888888}labb: ${color #CCCCCC}${fs_used /media/sda7}${color #888888}/${color #CCCCCC}${fs_size /media/sda7} ${color #888888}(${color #CCCCCC}${fs_free /media/sda7}, ${fs_free_perc /media/sda7}% ${color #888888}free)
${fs_bar /media/sda7}
${color #888888}edubuntu: ${color #CCCCCC}${fs_used /media/sda8}${color #888888}/${color #CCCCCC}${fs_size /media/sda8} ${color #888888}(${color #CCCCCC}${fs_free /media/sda8}, ${fs_free_perc /media/sda8}% ${color #888888}free)
${fs_bar /media/sda8}
${color #888888}kubuntu: ${color #CCCCCC}${fs_used /media/sda9}${color #888888}/${color #CCCCCC}${fs_size /media/sda9} ${color #888888}(${color #CCCCCC}${fs_free /media/sda9}, ${fs_free_perc /media/sda9}% ${color #888888}free)
${fs_bar /media/sda9}
${color #888888}xubuntu: ${color #CCCCCC}${fs_used /media/sda10}${color #888888}/${color #CCCCCC}${fs_size /media/sda10} ${color #888888}(${color #CCCCCC}${fs_free /media/sda10}, ${fs_free_perc /media/sda10}% ${color #888888}free)
${fs_bar /media/sda10}
${color #888888}home: ${color #CCCCCC}${fs_used /media/sda11}${color #888888}/${color #CCCCCC}${fs_size /media/sda11} ${color #888888}(${color #CCCCCC}${fs_free /media/sda11}, ${fs_free_perc /media/sda11}% ${color #888888}free)
${fs_bar /media/sda11}
${color #888888}store reiser: ${color #CCCCCC}${fs_used /media/sdb1}${color #888888}/${color #CCCCCC}${fs_size /media/sdb1} ${color #888888}(${color #CCCCCC}${fs_free /media/sdb1}, ${fs_free_perc /media/sdb1}% ${color #888888}free)
${fs_bar /media/sdb1}
Det är tur att man inte sitter i Bossieman's sitts med en färdig dist

Man måste ju ha nått att göra

SV: Posta din .conkyrc
Postat: 11 jan 2008, 15:53
av pl1sk3n
Tror nu att jag förstår vad du menar Hund

Har samma problem med min hdd.
Men jag har fått ordnig på min cpu nu iaf.
Jag tog bort hela raden med k8temp & skrev in acpitemp itsället, så nu funkar det

Ska ta & försöka få ordning på filsystemet med hdd som inte visar rätt info.
Har just nu ingen aning om varför vissa funkar & vissa inte?
Som den ser ut nu & delar av scriptet.

SV: Posta din .conkyrc
Postat: 11 jan 2008, 17:59
av pl1sk3n
[quote="Lulle "]
Någon som har koden så att man kan få grafikkorts tempen och moderkort tempen?
[/quote
Den här funkar för mig; ${color #888888}motherboard: ${color #CCCCCC}${hwmon temp}C
Annars kanske denna ; MB:$color ${i2c temp 1}C
Du får väll antagligen ta bort/lägga till en del + ändra färger & sånt.
Ska pröva om jag kan få till ett script till mina minnen nu
Hoppas du får till det

SV: Posta din .conkyrc
Postat: 09 feb 2008, 16:16
av qwertan
Här är min Conky, inte helt färdig men fungerar utan problem.
Den består av 9 config filer, start script,script för väder och xmms
Anpassad för 1280*1024
Start script
Kod: Markera allt
sleep 10 &&
conky -c /home/alex/.conky/conky/system -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/processes -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/cpu -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/disk1 -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/disk2 -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/network -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/cal -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/weather -d &&
sleep 1 &&
conky -c /home/alex/.conky/conky/mpd -d
System
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 10
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 100 0
maximum_width 130 0
TEXT
$hr
$alignc System
$hr
System: $alignr${color 92CE0B}${font}${sysname}${color}
Kernel: $alignr${color 92CE0B}${font} ${kernel} ${color}
Arch: $alignr${color 92CE0B}${font}${machine}${color}
Uptime: $alignr${color 92CE0B}${font}${uptime_short} ${color}
Date:$alignr${color 92CE0B}${time %a %d %b} ${color}
Time:$alignr${color 92CE0B}${time %H.%M} ${color}
Cpu Temp: $alignr ${color 92CE0B}${font}${i2c temp 2}°${color}
MB Temp: $alignr ${color 92CE0B}${font}${i2c temp 1}°${color}
$hr
Processer
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 150
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 140 0
maximum_width 140 0
TEXT
$hr
$alignc Processes
$hr
Processes: $alignr ${color 92CE0B}${font}$processes ($running_processes)${color}
$alignc CPU Top
${top name 1}${color 92CE0B}$alignr${top cpu 1} ${top mem 1}${color}
${top name 2}${color 92CE0B}$alignr${top cpu 2} ${top mem 2}${color}
${top name 3}${color 92CE0B}$alignr${top cpu 3} ${top mem 3}${color}
$alignc MEM Top
${top_mem name 1}${color 92CE0B}$alignr${top_mem cpu 1} ${top_mem mem 1}${color}
${top_mem name 2}${color 92CE0B}$alignr${top_mem cpu 2} ${top_mem mem 2}${color}
${top_mem name 3}${color 92CE0B}$alignr${top_mem cpu 3} ${top_mem mem 3}${color}
$hr
Cpu/Ram
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 300
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 130 0
maximum_width 130 0
TEXT
$hr
$alignc Cpu/Ram
$hr
Cpu Usage: $alignr${color 92CE0B}${font}${cpu}% ${color}
Core1:$alignr Core2:
${color 92CE0B}${freq_dyn_g 1} GHz $alignr ${freq_dyn_g 2} GHz ${color}
${cpugraph cpu1 15,63}$alignr${cpugraph cpu2 15,63}
Ram:$alignr ${color 92CE0B}${font}${mem} ${color}
${memmax}: $alignr${membar 6,40}${color}
Swap:${alignr}${color 92CE0B}${font}${swap} ${color}
${swapmax}: $alignr${swapbar 6,40}${color}
$hr
Disk1
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 440
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 100 0
maximum_size 100 0
TEXT
$hr ${color}
$alignc Disks
$hr
$alignc EXT3:
Root: $alignr${color 92CE0B}${font}${fs_free /} ${color}
${fs_size}: $alignr${fs_bar 6,40 }${color}
Hdc6: $alignr${color 92CE0B}${font}${fs_free /media/hdc6} ${color}
${fs_size /media/hdc6}:$alignr${fs_bar 6,40 /media/hdc6}${color}}${color}
$alignc NTFS:
Hdc5: $alignr${color 92CE0B}${font}${fs_free /media/hdc5} ${color}
${fs_size /media/hdc5}:$alignr${fs_bar 6,40 /media/hdc5}${color}
Hdb5: $alignr${color 92CE0B}${font}${fs_free /media/hdb5} ${color}
${fs_size /media/hdb5}:$alignr${fs_bar 6,40 /media/hdb5}${color}}${color}
$hr
Disk2
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 550
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 100 0
maximum_size 100 0
TEXT
$hr ${color}
$alignc Disks
$hr
Hdb1: $alignr${color 92CE0B}${font}${fs_free /media/hdb1} ${color}
${fs_size /media/hdb1}:$alignr${fs_bar 6,40 /media/hdb1}${color}
Sda1: $alignr${color 92CE0B}${font}${fs_free /media/sda1} ${color}
${fs_size /media/sda1}:$alignr${fs_bar 6,40 /media/sda1}${color}
Sda5: $alignr${color 92CE0B}${font}${fs_free /media/sda5} ${color}
${fs_size /media/sda5}:$alignr${fs_bar 6,40 /media/sda5}${color}}${color}
Hda1: $alignr${color 92CE0B}${font}${fs_free /media/hda1} ${color}
${fs_size /media/hda1}:$alignr${fs_bar 6,40 /media/hda1}${color}}${color}
${diskiograph 15,00 92CE0B 92CE0B 750}
$hr
Networking
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 660
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 130 0
maximum_width 130 0
TEXT
$hr ${color}
$alignc Networking
$hr
Hostname; $alignr${color 92CE0B}${font}${nodename}${color}
Ip: $alignr${color 92CE0B}${font}${addr eth0}${color}
Download: $alignr Upload:
${color 92CE0B}${downspeed eth0} k/s ${alignr} ${upspeed eth0} k/s${color}
${downspeedgraph eth0 15,63 92CE0B 92CE0B 2600} ${alignr}${upspeedgraph eth0 15,63 92CE0B 92CE0B 280}
Total Dw;$alignr${color 92CE0B} ${totaldown eth0} ${color}
Total Up :$alignr ${color 92CE0B}${totalup eth0} ${color}
$hr ${color}
Calender
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 800
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 155 0
maximum_width 155 0
TEXT
$hr ${color}
$alignc Calender
$hr
$alignc ${execi 360 cal | awk 'NR==1 {print $1 " " $2}' }
$alignc ${execi 360 cal | awk 'NR>1' | sed -e 's/ / /g' -e 's/[^ ] /& /g' -e 's/..*/ & /' -e 's/ \('`date | awk '{print $3}'`'\) /\['`date | awk '{print $3}'`'\]/'}
$hr ${color}
Wheather/Xmms
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 965
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 155 0
maximum_width 155 0
TEXT
$hr ${color}
$alignc Weather
$hr
${execi 300 /home/alex/.conky/weather.sh SWXX0060}
${color 92CE0B}Xmms: ${execi 5 cat /tmp/xmms-info | grep Status: | cut -d ":" -f2} ${hr 1}${color}
Artist: ${execi 5 xmmsctrl title | cut -d "-" -f1}
Title: ${execi 5 xmmsctrl title | cut -d "-" -f2}
$hr ${color}
MPD
Kod: Markera allt
#avoid flicker
double_buffer yes
#own window to run simultanious 2 or more conkys
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
#borders
draw_borders no
border_margin 1
#shades
draw_shades no
#position
gap_x 1130
gap_y 48
alignment bottom_left
#behaviour
update_interval 1
#colour
default_color 0FDE08
#default_shade_color cccccc
own_window_colour 222222
#font
use_xft yes
xftfont Vibrocentric:pixelsize=10
#to prevent window from moving
use_spacer no
minimum_size 140 0
maximum_width 140 0
TEXT
$hr ${color}
$alignc MPD
$hr
MPD:${color #92CE0B}Now ${mpd_status}${color}
Artist:${alignc}${color #92CE0B} $mpd_artist${color}
Title:${alignc}${color #92CE0B} $mpd_title${color}
Album:${alignc}${color #92CE0B} $mpd_album${color}
File:${alignc}${color #92CE0B} $mpd_file${color}
Time:${color #92CE0B} $mpd_elapsed $alignr($mpd_length)${color}
${color #0FDE08} $mpd_bar ${color}
Bitrate:${color #92CE0B} $mpd_bitrate kbps${color}
Random:${color #92CE0B} $mpd_random${color}
Repeat:${color #92CE0B} $mpd_repeat${color}
$hr ${color}
Väderscripten som behövs
wheather.xslt
Kod: Markera allt
<!--
This XSLT is used to translate an XML response from the weather.com
XML API.
You can format this file to your liking. Two things you may feel
like doing:
1) Modify the layout of the fields or static text already defined
2) Add other fields from the XML response file that aren't referenced in this
XSLT. You can grab a full list by just doing a:
wget "http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS"
(change $LOCID and $UNITS to suit your needs)
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:output method="text" disable-output-escaping="yes"/>
<xsl:template match="weather">
<xsl:apply-templates select="cc"/>
<xsl:apply-templates select="dayf/day[@d='1']"/>
</xsl:template>
<xsl:template match="cc">
<xsl:text> Temperature: </xsl:text><xsl:value-of select="tmp"/><xsl:value-of select="/weather/head/ut"/>
<xsl:if test="tmp != flik">
<xsl:text>
Feels Like: </xsl:text><xsl:value-of select="flik"/><xsl:value-of select="/weather/head/ut"/>
</xsl:if>
<xsl:text>
Conditions: </xsl:text><xsl:value-of select="t"/>
<xsl:text>
Wind: </xsl:text>
<xsl:choose>
<xsl:when test="wind/s = 'calm'"><xsl:text>0</xsl:text></xsl:when>
<xsl:otherwise><xsl:value-of select="wind/s"/></xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/weather/head/us"/>
<xsl:choose>
<xsl:when test="wind/s = 'calm'"><xsl:text>(0mph)</xsl:text></xsl:when>
<xsl:otherwise><xsl:text> (</xsl:text><xsl:value-of select="round(wind/s * 0.6214)"/><xsl:text>mph)</xsl:text></xsl:otherwise>
</xsl:choose>
<xsl:text> (</xsl:text><xsl:value-of select="wind/t"/>
<xsl:text>)</xsl:text>
</xsl:template>
<xsl:template match="dayf/day[@d='1']">
<xsl:text>
Tomorrow: </xsl:text><xsl:value-of select="low"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text> to </xsl:text><xsl:value-of select="hi"/><xsl:value-of select="/weather/head/ut"/>
<xsl:text>, </xsl:text><xsl:value-of select="part[@p='d']/t"/>
<xsl:text>
</xsl:text><xsl:value-of select="/weather/swa/a/t"/>
</xsl:template>
</xsl:stylesheet>
weather.sh
Kod: Markera allt
#!/bin/sh
#
# Grab weather data from weather.com and format it according to the given XSLT
# Script written by boojit
# Modified by Hellf[i]re
# The orignal script and xslt can be downloaded from http://pondol.com/weather.tar.gz
# Usage:
# ${execi 1800 /home/alex/.conky/.weather.sh SWXX0060}
# Usage Example:
# ${execi 1800 /home/alex/.conky/weather.sh 03833}
# your Location ID: use http://xoap.weather.com/search/search?where=[yourcity] to find it
# U.S. users can just use their zip code; doubt that works for anyone else though (YMMV)
LOCID=$1
# s=standard units, m=metric units
UNITS=m
# where this script and the XSLT lives
RUNDIR=/home/alex/.conky
# there's probably other stuff besides CURL that will work for this, but i haven't
# tried any others.
# you can get curl at http://curl.haxx.se/
CURLCMD=/usr/bin/curl
# get it at http://xmlsoft.org/XSLT/
XSLTCMD=/usr/bin/xsltproc
# you probably don't need to modify anything below this point....
# CURL url. Use cc=* for current forecast or dayf=10 to get a multi-day forecast
CURLURL="http://xoap.weather.com/weather/local/$LOCID?cc=*&unit=$UNITS&dayf=2"
# The XSLT to use when translating the response from weather.com
# You can modify this xslt to your liking
XSLT=$RUNDIR/weather.xslt
#filter (if you want to convert stuff to lower-case or upper case or something)
#FILTER="|gawk '{print(tolower(\$0));}'"
#####
eval "$CURLCMD \"$CURLURL\" 2>/dev/null| $XSLTCMD $XSLT - $FILTER"
Och för xmms.
xmms.sh
Kod: Markera allt
#!/bin/bash
#This script is free to modify and distribute.
#Use at your own risk.
#Requirement: xmms-infopipe
#User Settings here
maxcol=35
file=/tmp/xmms-info
#Grab needed information
pos=`cat $file | grep uSecPosition: | cut -d : -f2`
len=`cat $file | grep uSecTime: | cut -d : -f2`
#Count the length in characters of the title
size=`echo $title | wc -c`
#Calculate current position within that length
poscol=$(echo "$pos*$maxcol/$len" | bc)
#Printing
for (( i=0; i<$maxcol; i++ ))
do
if [ $i -eq $poscol ]; then
echo -n 'O'
else
echo -n '='
fi
done
ojoj långt inlägg.
SV: Posta din .conkyrc
Postat: 09 feb 2008, 17:53
av Hund
Jag har nog den minsta konfigurationen någonsin nu.
Kod: Markera allt
background no
font Sans:size=7
use_xft yes
xftalpha 0.9
update_interval 3.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 220 5
maximum_width 80
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
alignment top_right
gap_x 12
gap_y 35
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase yes
TEXT
${alignr}${uptime}
${alignr}${freq} MHz
${alignr}${cpu cpu1}%
${alignr}${cpu cpu2}%
${alignr}${mem}
${alignr}${swap}
${alignr}${acpitemp}C
${alignr}${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}C
SV: Posta din .conkyrc
Postat: 09 feb 2008, 17:57
av Ulsak
@qwertan: wtf!

@hund: wtf!

SV: Posta din .conkyrc
Postat: 09 feb 2008, 18:00
av Hund
Ulsak skrev:
@qwertan: wtf!

@hund: wtf!
Jag hittade lite fräsiga widgets till Screenlets. Så jag har ordnat att när jag trycker på F9 så tonas skärmen ner och dessa widgets med all systeminfo dyker fram.
Ett steg närmare det rena skrivbordet!
SV: Posta din .conkyrc
Postat: 09 feb 2008, 18:17
av Ulsak
jäkligt cool, en minimal och jättestor conky. Jag tror nog att jag siktar in mig på din .rc fil, Hund!
SV: Posta din .conkyrc
Postat: 09 feb 2008, 21:06
av qwertan
JA måste ha för mycket fritid!

SV: Posta din .conkyrc
Postat: 10 feb 2008, 13:18
av pell
Jag har också en ganska minimal config. Snodde designen från ett screenshot på box-look.
Kod: Markera allt
background no
font Aerofoil:size=18
use_xft yes
xftalpha 0.9
update_interval 3.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 1640
width 1640
draw_shades yes ### SHADOW ###
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white ### Text Color ###
default_shade_color black
default_outline_color green
alignment bottom_left
gap_x 20
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
uppercase no
TEXT
${color white}${hr 1}
${color white}${tztime Canada/Pacific %A, %d %B} - ${time %k:%M} $alignr${color white}cpu: ${color #CCCCCC}${cpu}% ${color white}ram:${color white}$memperc% ${color white}down: ${color white}${downspeed eth0}k/s ${color white}up: ${color white}${upspeed eth0}k/s
SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:13
av joda
tjena...
har två conky frågor...
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
var i själva texten bestäms positionen på skrivbordet ?
//jonatan
SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:21
av Rasmus
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky

SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:34
av joda
Rasmus skrev:
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky
tackar....
//jonatan
SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:46
av Beakon
Rasmus skrev:
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky
Skulle rekommendera "killall conky" först så slipper man dubletter ovanpå varandra
SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:52
av joda
Bejron skrev:
Rasmus skrev:
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky
Skulle rekommendera "killall conky" först så slipper man dubletter ovanpå varandra
skriver man det på samma ställe eller ?
SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:55
av Rasmus
joda skrev:
Bejron skrev:
Rasmus skrev:
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky
Skulle rekommendera "killall conky" först så slipper man dubletter ovanpå varandra
skriver man det på samma ställe eller ?
Om du vill, annars kan du skriva det i en terminal. Man får välja själv

SV: Posta din .conkyrc
Postat: 15 feb 2008, 23:58
av joda
Rasmus skrev:
joda skrev:
Bejron skrev:
Rasmus skrev:
joda skrev:
hur startar man om conky utan att behöva starta om datorn efter man gjort nån ändring i conkyrc ?
[alt]+[f2] och skriv conky
Skulle rekommendera "killall conky" först så slipper man dubletter ovanpå varandra
skriver man det på samma ställe eller ?
Om du vill, annars kan du skriva det i en terminal. Man får välja själv
haha... oki... kul när man får välja lite själv...

SV: Posta din .conkyrc
Postat: 16 feb 2008, 00:46
av joda
hur ändrar jag positionen på vart den ska ligga på skrivbordet då ?