|
2010-02-27
, 19:39
|
Posts: 156 |
Thanked: 90 times |
Joined on Jan 2010
|
#152
|
|
2010-02-27
, 22:46
|
Posts: 112 |
Thanked: 122 times |
Joined on Dec 2009
@ London, United Kingdom
|
#153
|
|
2010-02-28
, 00:06
|
Posts: 235 |
Thanked: 8 times |
Joined on Feb 2010
|
#154
|
|
2010-02-28
, 00:23
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#155
|
|
2010-02-28
, 00:27
|
Posts: 235 |
Thanked: 8 times |
Joined on Feb 2010
|
#156
|
|
2010-02-28
, 02:15
|
Posts: 118 |
Thanked: 59 times |
Joined on May 2007
|
#157
|
Shouldn't it be possible to process the output of uptime through awk and create a conditional script that runs when the widget is clicked, but not at startup?
if [ `uptime | awk '{ print $3 $4 }'` = "1min," ] ; then echo " " ; else leafpad ~/MyDocs/desktop_notes.txt ; echo " " ; fi
cat ~/MyDocs/desktop_notes.txt
|
2010-02-28
, 11:30
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#158
|
|
2010-02-28
, 14:00
|
Posts: 156 |
Thanked: 90 times |
Joined on Jan 2010
|
#159
|
@calvin_42:
yeah yeah... that's a very ugly "feature" that will be removed on the next version. So far, just edit one thing at a time and everybody will be fine.
@rooted:
ok, i got it some time ago but I think that sometimes center alignement is bad. Some people, for example, are asking for monospace fonts for multiline results.. I believe I'll just have to add an option on the next version somehow.
|
2010-02-28
, 16:13
|
Posts: 156 |
Thanked: 90 times |
Joined on Jan 2010
|
#160
|
#!/bin/sh out=`ifconfig wlan0` if [ $? -eq "0" ] ; then if [ `echo "$out" | grep -c RUNNING` -gt "0" ] ; then run-standalone.sh dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true fi ifconfig wlan0 down rmmod wl12xx run-standalone.sh dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Wi-Fi disabled' exit 2 else modprobe wl12xx wl1251-cal stop wlancond start wlancond ifconfig wlan0 up run-standalone.sh dbus-send --print-reply --system --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false exit 0 fi
dbus-send --system --dest=com.nokia.icd /com/nokia/icd_ui com.nokia.icd_ui.disconnect boolean:true; dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:'Internet disconnected'; echo ""
dbus-send --print-reply --system --dest=com.nokia.icd_ui /com/nokia/icd_ui com.nokia.icd_ui.show_conn_dlg boolean:false | echo ""
cat /sys/class/i2c-adapter/i2c-2/2-0063/power_level