|
Page 2 of 6 |
|
Prev |
1 2
3 4
|
Next
| Last
Re: Date on desktop? N900
Quote:
|
Re: Date on desktop? N900
iv also got some free memory widgets (rootfs, mass mem and mem card), is there any command to use so i can have 1 showing free RAM? thanx
http://img695.imageshack.us/img695/3...030913063x.png Command to show free mass memory: df -h | awk ' $1 == "/dev/mmcblk0p1" {print $4"B"}' Command to show free memory on mem card: df -h | awk ' $1 == "/dev/mmcblk1p1" {print $4"B"}' |
Re: Date on desktop? N900
Quote:
Tis very customisable though :) |
Re: Date on desktop? N900
well there are a few ways to get free memory. the most useful for this widget would be
head -n 2 /proc/meminfo | tail -n 1 this will give you free mem in one line. More informative is the command free that will give you more info on how it is allocated. the command I gave is chopping one line out of the meminfo file. from an xterm type cat /proc/meminfo To see it all. the field I have taken above is memfree. But I do not think that is very useful due to the way linux uses memory. Someone who knows more about the linux memory model nay be able to provide more useful info. |
Re: Date on desktop? N900
would there be a command that could pull time form world clock so it could display on desktop using the desktop widget?
|
Re: Date on desktop? N900
Quote:
|
Re: Date on desktop? N900
yes but you will have to let me get to my home PC (very late UK time tonight.) To play with it.
If someone else comes up with it meanwhile cool. Work PC is windows so cant really experiment much. |
Re: Date on desktop? N900
not the most elegent solution but it should work.
head -n 2 /proc/meminfo | tail -n 1 | fold -w 15 | tail -n 1 Basically we are cutting the line in half and selecting only the second half. This would be simpler with regular expressions but Id have to remind my self how to use all that again. Someone will prolly post with a easier solution. |
Re: Date on desktop? N900
Quote:
this would give you a number of other useful features so I will look into it. Point me to the site you would like the world clock info to come from and I will play tonight. At some point I will look into writting my own widgets. But I think ill wait for the QT update in the UK. This way it will last through meego etc. |
Re: Date on desktop? N900
Ive tried the command for the date in the widget and i get an "invalid command" error on my widget.
i checked and i copied it correctly. anyone know what i could be doing wrong? |
| All times are GMT. The time now is 09:36. |
Page 2 of 6 |
|
Prev |
1 2
3 4
|
Next
| Last
vBulletin® Version 3.8.8