Active Topics

 



Notices


Reply
Thread Tools
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#381
and i see all of user's requests.can be solved with simple scripts. you really dont want to learn scripting and only want to ask any simple things to do?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Loepoes's Avatar
Posts: 56 | Thanked: 25 times | Joined on Apr 2012 @ Cape Town,South Africa
#382
Originally Posted by coderus View Post
ask in wazapp thread or use script, placed some pages ago.

Thanks so much my friend. Found the answer on page 32... All is well now!!
 
Loepoes's Avatar
Posts: 56 | Thanked: 25 times | Joined on Apr 2012 @ Cape Town,South Africa
#383
Originally Posted by coderus View Post
and i see all of user's requests.can be solved with simple scripts. you really dont want to learn scripting and only want to ask any simple things to do?
I understand your frustration but not all of us are capable of finding solutions to a particular problem. And I just didn't realise how simple the answer really was. Sorry for asking!
 

The Following User Says Thank You to Loepoes For This Useful Post:
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#384
Coderus
I know that simple script about short weekday, but how can i make it own language? It print only english.
(How: if 'Mon', print 'Ma'?)
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#385
where is it?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
thp's Avatar
Posts: 1,391 | Thanked: 4,272 times | Joined on Sep 2007 @ Vienna, Austria
#386
Turns out that it might make sense to have a central repository for all Billboard scripts spread out over this thread, so here it is:

https://github.com/harmattan/billboard-scripts

Contributions, updates and patches welcome (pull request if possible).
 

The Following 13 Users Say Thank You to thp For This Useful Post:
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#387
okay
will push my scripts soon
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following 2 Users Say Thank You to coderus For This Useful Post:
MK99's Avatar
Posts: 644 | Thanked: 480 times | Joined on Jul 2012 @ Finland
#388
Originally Posted by coderus View Post
where is it?
Now it is very very simple, becouse i never find solution.
Code:
#!/bin/sh
date +"%a %e.%m"
 
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#389
Originally Posted by MK99 View Post
Coderus
I know that simple script about short weekday, but how can i make it own language? It print only english.
(How: if 'Mon', print 'Ma'?)
It should translate things by set locale but for some reason it doesn't. Only thing left to do is to "translate" the output of date +%u

Code:
#!/bin/sh

day=$(date +%u)
echo | awk -v d=$day '{split("Ma Ti Ke To Pe La Su",a," "); printf a[d]}'
This will give out the abbreviated finnish weekday.

Edit: Changed this to use printf to avoid a line break. Thanks, EmaNymton.

Last edited by slarti; 2012-12-31 at 12:08.
 

The Following 2 Users Say Thank You to slarti For This Useful Post:
Posts: 79 | Thanked: 37 times | Joined on Feb 2012
#390
Is it at all possible to see estimated batterytime left? And where would i start researching scripting?
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:31.