Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
torsmo Tips & Tricks
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Sat Sep 03, 2005 5:58 pm    Post subject: Reply with quote

hongqn...

Thanks for the advice... Works well in conky!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
grimzy
n00b
n00b


Joined: 18 Jan 2005
Posts: 27
Location: Down the rabbithole

PostPosted: Tue Sep 06, 2005 11:17 pm    Post subject: Reply with quote

Script for grabbing info out of nvclock -i

Just save as gpuinfo.sh and use the example in the code
Only tested with nvclock 0.8 and gf 4400/gf6800
If copy/past doesn't work then try downloading it from here

Code:

#!/bin/sh
# Simple script (my first bashscript ever!) for grabbing info out of 'nvclock -i' 
# - meant for torsmo/conky users with nvidia cards, by grimzy (grimzy@monet.no)
#
# Requires nvclock 0.8 and a nvidia-based card (only tested with gf 4400/gf6800 and nvclock 0.8).
# Note that only newer nvidia cards have temp-sensors.
# Also, make sure you have permission to run nvclock -i.

# Example for .torsmorc/.conkyrc:
# GPU: ${exec sh gpuinfo.sh boardname} (${exec sh gpuinfo.sh boardchip})
#  Mhz ${execi 10 sh gpuinfo.sh gpuspeed} (Mem ${execi 10 sh gpuinfo.sh memspeed})
#  Temp ${execi 10 sh gpuinfo.sh gputemp} (Board ${execi 10 sh gpuinfo.sh boardtemp})
#

if [ -z "$1" ]
then
  echo "Usage: `basename $0` [boardname|boardchip|boardtemp|gputemp|gpuspeed|memspeed]"
  exit $E_NOARGS
fi
if [ -e ~/.gpuinfo.tmp ]
then
  file=~/.gpuinfo.tmp
  {
  read line1
  } < $file
  let "line1 += 10"
  # Check if file has been updated less than 10secs ago (No reason to spam nvclock - uses less cpu (I think :P))
  # Change 10 to a lower value if you want it to be updated more often.
  if [ "$(date +%s)" -gt "$line1" ]
  then
    date +%s > ~/.gpuinfo.tmp
    nvclock -i >> ~/.gpuinfo.tmp
  fi
else
  # Create file on first-time run
  date +%s > ~/.gpuinfo.tmp
  nvclock -i >> ~/.gpuinfo.tmp
fi
case $1 in
  "boardname" ) out=$(cat ~/.gpuinfo.tmp | grep "Card" | sed -e 's/^.*Card: \(.*\)$/\1/' -e s/,//g -e 's/^[ \t]*//;s/[ \t]*$//');;
  "boardchip" ) out=$(cat ~/.gpuinfo.tmp | grep "Architecture" | sed -e 's/^.*Architecture: \(.*\)$/\1/' -e s/,//g -e 's/^[ \t]*//;s/[ \t]*$//');;
  "boardtemp" ) out=$(cat ~/.gpuinfo.tmp | grep "Board temp" | awk '{print $3}');;
  "gputemp"   ) out=$(cat ~/.gpuinfo.tmp | grep "GPU temp" | awk '{print $3}');;
  "gpuspeed"  ) out=$(cat ~/.gpuinfo.tmp | grep "GPU clock" | awk '{print $3}');;
  "memspeed"  ) out=$(cat ~/.gpuinfo.tmp | grep "Clock" | awk '{print $2}');;
  *           ) out="Usage: `basename $0` [boardname|boardchip|boardtemp|gputemp|gpuspeed|memspeed]";;
esac
echo "$out"
exit $?
Back to top
View user's profile Send private message
.tmh.
n00b
n00b


Joined: 04 Oct 2005
Posts: 1
Location: Poland

PostPosted: Tue Oct 04, 2005 5:04 pm    Post subject: Reply with quote

Hello!

I have little problem with gmail.pl posted by someone in that topic ...
My /tmp/gmail.txt looks like that:
Code:

totalmessages=1
newmessages=0
status=Using  () of

That total message is _new_ message (not readed), but why is not displayed in newmessages=1 :?:
And imho status check is broken in this script... (it should be in my event: Using 0MB (0%) of 1000MB).
Please help.

Greetings!
TmH.
Back to top
View user's profile Send private message
Hamstereyes
n00b
n00b


Joined: 19 Sep 2005
Posts: 36

PostPosted: Thu Oct 13, 2005 5:16 am    Post subject: Reply with quote

Can someone repost the powerstatus script ??
The original link is broken =(.

I would love to get my hands on it.

Thanks guys
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Oct 13, 2005 12:04 pm    Post subject: Reply with quote

brenden wrote:
For those interested in the weather stuff, now would be a good time to check out conky. The next version of conky will have the weather stuff built in (it's in the dev snapshot currently), with temperatures in C and F. More on conky:

http://forums.gentoo.org/viewtopic-t-351806-highlight-.html?sid=2ef1fe6f6b4a0e89f7698c9c0fa7a4a8


I recently intalled CVS on my machine and its searlly bloated :x , i had to go back to stable (almost stable thugh) how often is CVS updated ??
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
bruciemoose
n00b
n00b


Joined: 22 Sep 2004
Posts: 19
Location: Llanfair TH, North Wales

PostPosted: Fri Oct 14, 2005 7:48 pm    Post subject: Reply with quote

Hamstereyes wrote:
Can someone repost the powerstatus script ??
The original link is broken =(.

I would love to get my hands on it.

Thanks guys


I've edited my post. You can see the scripts I write (being slowly updated) at

http://andrewbruce.net/help.php
_________________
Teachers: Write student reports online!
Back to top
View user's profile Send private message
Hamstereyes
n00b
n00b


Joined: 19 Sep 2005
Posts: 36

PostPosted: Tue Oct 18, 2005 3:52 am    Post subject: Reply with quote

Sweet thanks ! =)

Works great with my auto hibernation scripts.
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Wed Nov 16, 2005 2:02 am    Post subject: Reply with quote

can anyone point me to howto get cpu temp to show up? i cant figure it out from the config file, im trying something like this:
Code:
${color}CPU %:${color } $cpu% ${color}CPU Temp:${color } $temp1 C

but im getting 0 for the reading, also tried $acpitemp and still getting the same thing.
Back to top
View user's profile Send private message
gnychis
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1004
Location: Pittsburgh, PA

PostPosted: Wed Nov 16, 2005 2:27 am    Post subject: Reply with quote

stardragon: do you have everything set up to actually read temperatures from your motherboard? conky can't do it by itself
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Wed Nov 16, 2005 3:10 pm    Post subject: Reply with quote

yeap, i think thats my problem, are there any leads on how to get the acpi or i2c sensors setup? i can't find anything on the torsmo website.
Back to top
View user's profile Send private message
nonas
Guru
Guru


Joined: 17 Apr 2005
Posts: 326

PostPosted: Wed Nov 16, 2005 6:07 pm    Post subject: Reply with quote

torsmo is deprecated, you should try Conky. (see this thread)

Hardware Sensors on Gentoo Wiki

HTH.
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Mon Nov 21, 2005 3:29 pm    Post subject: Reply with quote

i should probably start a new topic, but after i run sensors-detect and try to load all my modules i get this:
Code:
leamonde linux # modprobe eeprom
leamonde linux # modprobe via686a
FATAL: Module via686a not found.
leamonde linux # modprobe i2c-viapro
leamonde linux # modprobe i2c-isa
FATAL: Module i2c_isa not found.
leamonde linux #
how do i get those two modules from the kernel?

[edit:] nevermind i got it, just had to dig around to configuration file.
Back to top
View user's profile Send private message
StarDragon
Guru
Guru


Joined: 19 Jun 2005
Posts: 390
Location: tEXas

PostPosted: Tue Nov 22, 2005 2:21 am    Post subject: Reply with quote

nonas wrote:
torsmo is deprecated, you should try Conky. (see this thread)


well i tried emerging that package and i get:
Code:
leamonde ~ # emerge -Nva conky

These are the packages that I would merge, in order:

Calculating dependencies   
!!! All ebuilds that could satisfy "conky" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-admin/conky-1.3.3 (masked by: ~x86 keyword)
- app-admin/conky-1.3.1 (masked by: ~x86 keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
section 2.2 "Software Availability" in the Gentoo Handbook.

leamonde ~ #


maybe i shouldn't mess with it just yet. :roll:
Back to top
View user's profile Send private message
Geministorm
n00b
n00b


Joined: 10 May 2005
Posts: 50
Location: Melbourne, FL USA

PostPosted: Mon Jan 30, 2006 4:30 am    Post subject: Reply with quote

Thought I'd post my .conkyrc, that I manipulated from the conky site...

.conkyrc in my ~/ directory;
Code:

background yes
#font 7x13
font 6x10
use_xft no
on_bottom yes
#mpd_host 192.168.150.2
#mpd_port 6600
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
double_buffer yes
minimum_size 250 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
maximum_width 265
gap_x 12
gap_y 12background yes
#font 7x13
font 6x10
use_xft no
on_bottom yes
#mpd_host 192.168.150.2
#mpd_port 6600
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
double_buffer yes
minimum_size 250 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
maximum_width 265
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer no

# stuff after 'TEXT' will be formatted on screen

TEXT
${color grey}Gemini@${color #7f8ed3}$nodename   ${color #5b6dad}Up:${color grey} ${uptime}
${color #5b6dad}$hr
${color #7f8ed3}$kernel on $machine ${alignr}${color #5b6dad}gcc-${color #5b6dad}${exec ~/scripts/conky/gccver}

${color #5b6dad}System:
${color #5b6dad} CPU Usage:${color #7f8ed3}  $cpu% ${alignr}${color #5b6dad}Temp:${color #7f8ed3} ${execi 30 ~/scripts/conky/cpu_temp}
${color #000000}${cpugraph cpu0 32,265 CCCCCC 7f8ed3}
${color #5b6dad} RAM Usage:${color #7f8ed3} $memperc% - ${alignr}$mem/$memmax
${color #7f8ed3} ${membar}
${color #5b6dad} Swap Usage:${color #7f8ed3} $swapperc% - ${alignr}$swap/$swapmax
${color #7f8ed3} ${swapbar}
${color #5b6dad} Processes:${color #7f8ed3} $processes  ${color #5b6dad}Running:${color #7f8ed3} $running_processes

${color #5b6dad} CPU                 PID    CPU%   Mem%
${color grey}   ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color #7f8ed3}   ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color #7f8ed3}   ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color #5b6dad} Memory
${color grey}   ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #7f8ed3}   ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #7f8ed3}   ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}

${color #5b6dad}Network:
 ${color #5b6dad} Up:${color #7f8ed3} ${upspeed wlan0} k/s ${color #5b6dad}${alignr}Down:${color #7f8ed3} ${downspeed wlan0} k/s
 ${color #000000}${upspeedgraph wlan0 32,130 CCCCCC 7f8ed3} ${color #000000}${alignr}${downspeedgraph wlan0 32,130 CCCCCC 7f8ed3}

${color #5b6dad}File Systems:
  ${color #5b6dad}root : ${color #7f8ed3}${fs_used /}${color #5b6dad}/${color #7f8ed3}${fs_size /} ${alignr}${color #5b6dad}(${color #7f8ed3}${fs_free /} ${fs_free_perc /}% ${color #5b6dad} free)
  ${fs_bar /}
  ${color #5b6dad}usr : ${color #7f8ed3}${fs_used /usr}${color #5b6dad}/${color #7f8ed3}${fs_size /usr} ${alignr}${color #5b6dad}(${color #7f8ed3}${fs_free /usr} ${fs_free_perc /usr}% ${color #5b6dad} free)
  ${fs_bar /usr}
  ${color #5b6dad}home : ${color #7f8ed3}${fs_used /home/gemini}${color #5b6dad}/${color #7f8ed3}${fs_size /home/gemini} ${alignr}${color #5b6dad}(${color #7f8ed3}${fs_free /home/gemini} ${fs_free_perc /home/gemini}% ${color #5b6dad} free)
  ${fs_bar /home/gemini}
  ${color #5b6dad}share: ${color #7f8ed3}${fs_used /mnt/downloads}${color #5b6dad}/${color #7f8ed3}${fs_size /mnt/downloads} ${alignr}${color #5b6dad}(${color #7f8ed3}${fs_free /mnt/downloads} ${fs_free_perc /mnt/downloads}% ${color #5b6dad} free)
  ${fs_bar /mnt/downloads}
  ${color #5b6dad}var: ${color #7f8ed3}${fs_used /var}${color #5b6dad}/${color #7f8ed3}${fs_size /var} ${alignr}${color #5b6dad}(${color #7f8ed3}${fs_free /var} ${fs_free_perc /var}% ${color #5b6dad} free)
  ${fs_bar /var}

${color #5b6dad}Portage:
  ${color #5b6dad}Current Progress ${color #7f8ed3}${execibar 30 ~/scripts/conky/emerge-progress.sh}
  ${color #5b6dad}Current Package  ${color #7f8ed3}${execi 30 ~/scripts/conky/emerge-current.sh}
  ${color #5b6dad}Current Status   ${color #7f8ed3}${execi 30 ~/scripts/conky/emerge-status.sh}
  ${color #5b6dad}Last Sync        ${color #7f8ed3}${execi 300 ~/scripts/conky/lastsync.pl}

${color #5b6dad}Gentoo Linux Security Advisories:
${color #7f8ed3}${execi 300 ~/scripts/conky/conky-rdf.sh}

${color #5b6dad}Local Weather:
 ${color #7f8ed3}${execi 1800 ~/scripts/conky/weather/weather.sh}
${color #5b6dad}Fox News Latest Headlines:
${color #7f8ed3}${execi 300 ~/scripts/conky/conky-rss.sh}

${color #7f8ed3}${hr 2}
${color #5b6dad}Date: ${color #7f8ed3}${time %a  %m/%d/%Y}      ${alignr}${time %T}


Created some directories that I put all of my conky related scripts in;

Code:

$ mkdir ~/scripts/conky


gccver - gives current gcc version
Code:

#!/bin/sh
 gcc --version | awk 'NR==1 { print $3 }'


cpu_temp - gives current cpu temp
Code:

#!/bin/sh
cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2, $3}'


I also made an alias to assist while I was tweaking my conky settings..
Code:

alias reconky='killall -SIGUSR1 conky'

I put this at the end of ~/.bashrc and then issued a "source ~/.bashrc". That way, its easy to just restart the conky process while on my desktop.

The only other thing I needed to do was to emerge DateManip in order to get the Lastsync.pl file to work, and make some edits to the weater location info.

Here is a picture of my current desktop where you can see Conky in action.

.
_________________
Abit NF7-S (Realtek RTL8201, RTL8801b, ALC650, SiL3112a)
1GB (2x 512MB) DDR400, dual-channel
AMD 2500+ (Barton) XP (@10x200)
200GB Maxtor SATA
120GB Maxtor U-ATA
45GB IBM U-ATA
Plextor PX-712 DVD+/-RW
AOpen 16x DVD
OS: Gentoo/WinXP
Back to top
View user's profile Send private message
berus
Guru
Guru


Joined: 28 Dec 2003
Posts: 347
Location: Italy

PostPosted: Tue Feb 07, 2006 3:52 pm    Post subject: Reply with quote

Hi! :D
Geministorm can you post your emerge*.sh and *.rdf scripts?
Thanks

Bye

Oooops :oops: I found it here :arrow:
Back to top
View user's profile Send private message
Larcen
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 174

PostPosted: Sat Mar 25, 2006 2:05 pm    Post subject: Reply with quote

Geministorm: Any suggestions where i2c / lmsensors would store their temps, or whatever? Your cat /proc/acpi/ etc doesn't quite fit the same bill on my system. Thanks.
Back to top
View user's profile Send private message
franklun
n00b
n00b


Joined: 16 Apr 2006
Posts: 2

PostPosted: Sun Apr 16, 2006 8:26 pm    Post subject: Re: torsmo Tips & Tricks Reply with quote

Arainach wrote:

#!/bin/bash
city="DeWitt"
link=USMI0231.html
file=/tmp/weather.txt
location=http://weather.yahoo.com/forecast/$link

lynx -accept_all_cookies -dump $location > $file
begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`
end=`expr $begin + 40`

head -n $end $file > tmp.t
tail -n 41 tmp.t > $file

case $1 in
Today) head -n 6 $file | sed '3d' ;;
Tomorrow)
begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`
end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`
num=`expr $end - $begin - 1`
end2=`expr $begin + 7`

head -n $end2 $file > tmp.t
tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
*) exit ;;
esac

rm tmp.t
rm $file


How can i change Farenheit to Celsius? I only know that C = (F - 32)/1.8 but dunno how stick this in code.
thanks for anwsers... (plz help :wink: )
Back to top
View user's profile Send private message
franklun
n00b
n00b


Joined: 16 Apr 2006
Posts: 2

PostPosted: Mon Apr 17, 2006 2:27 pm    Post subject: Reply with quote

Or can it be changed in .torsmorc?
Back to top
View user's profile Send private message
Nimo
Tux's lil' helper
Tux's lil' helper


Joined: 23 Nov 2003
Posts: 107

PostPosted: Sun Aug 20, 2006 10:08 am    Post subject: Re: torsmo Tips & Tricks Reply with quote

franklun wrote:
Arainach wrote:

#!/bin/bash
city="DeWitt"
link=USMI0231.html
file=/tmp/weather.txt
location=http://weather.yahoo.com/forecast/$link

lynx -accept_all_cookies -dump $location > $file
begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`
end=`expr $begin + 40`

head -n $end $file > tmp.t
tail -n 41 tmp.t > $file

case $1 in
Today) head -n 6 $file | sed '3d' ;;
Tomorrow)
begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`
end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`
num=`expr $end - $begin - 1`
end2=`expr $begin + 7`

head -n $end2 $file > tmp.t
tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
*) exit ;;
esac

rm tmp.t
rm $file


How can i change Farenheit to Celsius? I only know that C = (F - 32)/1.8 but dunno how stick this in code.
thanks for anwsers... (plz help :wink: )



Try changing link=USMI0231.html to link=USMI0231_c.html.
_________________
//Nimo
Back to top
View user's profile Send private message
davejk
n00b
n00b


Joined: 28 Feb 2008
Posts: 33

PostPosted: Tue May 20, 2008 5:14 pm    Post subject: Reply with quote

I can't seem to get Torsmo to recognize my ~/.torsmorc. I even tried torsmo -c /home/zak/.torsmorc. But my changes don't take effect. What is wrong here? I am really anxious to try out these tips!
Back to top
View user's profile Send private message
nonas
Guru
Guru


Joined: 17 Apr 2005
Posts: 326

PostPosted: Tue May 20, 2008 5:35 pm    Post subject: Reply with quote

Do you know that torsmo is not maintained anymore ?
You should try out app-admin/conky, its successor. ;)
Back to top
View user's profile Send private message
davejk
n00b
n00b


Joined: 28 Feb 2008
Posts: 33

PostPosted: Wed May 21, 2008 8:06 pm    Post subject: Reply with quote

Yes I know but by default conky writes it's own window, and I would like it to jut write to the root window (in fluxbox) and stay transparent. But there is no man page for it apparently, and I don't know what to do with it.

Torsmo just does what I want by default, so I used it.
Back to top
View user's profile Send private message
blind-tnk
n00b
n00b


Joined: 20 Aug 2007
Posts: 11

PostPosted: Wed May 21, 2008 11:36 pm    Post subject: Reply with quote

True, but by setting a simple
Code:
background = yes

in conky's config it can be done.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Page 9 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum