thedead1440
|
2013-01-04
, 03:51
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#421
|
|
2013-01-04
, 03:57
|
Posts: 87 |
Thanked: 14 times |
Joined on Jan 2012
|
#422
|
all of the above is one command so you can check the outcome which should be the output of the dc command...
~$ usage=$(gconftool -g /cellui/settings/datacounter/general/gprs_home_notification_period_UI) ; tx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_tx_bytes) ; rx=$(gconfto ol -g /cellui/settings/datacounter/transfer/gprs_home_rx_bytes) ; total=$(($tx+$rx)) ; `dc $total $usage / p` dc: Could not open file 242418745 dc: Could not open file 1000000000 dc: Will not attempt to process directory / dc: Could not open file p ~ $
|
2013-01-04
, 04:00
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#423
|
~# dpkg -l | grep dc ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3
|
2013-01-04
, 04:11
|
Posts: 87 |
Thanked: 14 times |
Joined on Jan 2012
|
#424
|
~# dpkg -l | grep dc ii advancedcallrecorder 1.0.0 Advanced Call Recorder for Meego ii dc 1.06.95-2+maemo9+0m6 The GNU dcarbitrary precision reverse-polish calculator ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3 ~ #
|
2013-01-04
, 04:15
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#425
|
|
2013-01-04
, 04:29
|
Posts: 87 |
Thanked: 14 times |
Joined on Jan 2012
|
#426
|
~ # dpkg -l | grep dc ii advancedcallrecorder 1.0.0 Advanced Call Recorder for Meego rc dc 1.06.95-2+maemo9+0m6 The GNU dcarbitrary precision reverse-polish calculator ii libstdc++6 4.4.1-0maemo14+0m6 The GNU Standard C++ Library v3 ~ #
|
2013-01-04
, 07:06
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#427
|
#!/bin/sh # Warn in red if data left <20% # Data usage in cyan if data left not <20% tx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_tx_bytes) rx=$(gconftool -g /cellui/settings/datacounter/transfer/gprs_home_rx_bytes) total=$(($tx+$rx)) usage=$(gconftool -g /cellui/settings/datacounter/general/gprs_home_notification_period_UI) totalMB=$((($tx+$rx)/1000000)) amount=$(($total*100/$usage)) if [ $amount -ge 80 ] then echo {{red}}"Data left < 20%" else echo {{cyan}}"Data used = $totalMB MB" fi
The Following User Says Thank You to coderus For This Useful Post: | ||
|
2013-01-04
, 07:15
|
|
Posts: 6,436 |
Thanked: 12,701 times |
Joined on Nov 2011
@ Ängelholm, Sweden
|
#428
|
#!/bin/sh #profilematic idle enter script text=$(gconftool -g /apps/billboard/text) gconftool -s -t string /apps/billboard/text "{{white}}Billboard" gconftool -s -t string /apps/billboard/text "${text}"
The Following 5 Users Say Thank You to coderus For This Useful Post: | ||
|
2013-01-04
, 15:05
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#429
|
Script for force updating Billboard data when locking screen. Should be used with profilematic idle rule as activate script.
Code:#!/bin/sh #profilematic idle enter script text=$(gconftool -g /apps/billboard/text) gconftool -s -t string /apps/billboard/text "{{white}}Billboard" gconftool -s -t string /apps/billboard/text "${text}"
|
2013-01-04
, 15:17
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#430
|