|
2013-01-20
, 19:22
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#32
|
#!/bin/sh # Toggle WLAN radio state STATUS=$(/sbin/mcetool --status | grep -v grep | grep WLAN | awk '{print $2}' | head -1) if [ $STATUS == "enabled" ] then dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"WLAN Off" string:'' string:'' uint32:0 `/sbin/mcetool --disable-radio=wlan` else dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"WLAN On" string:'' string:'' uint32:0 `/sbin/mcetool --enable-radio=wlan` fi
[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=false Name=Toggle WLAN Exec=/bin/sh /home/user/wlan.sh Icon= X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
The Following 5 Users Say Thank You to thedead1440 For This Useful Post: | ||
|
2013-01-20
, 19:54
|
Posts: 63 |
Thanked: 75 times |
Joined on Jul 2012
@ Austria
|
#33
|
The Following User Says Thank You to N9uwu For This Useful Post: | ||
|
2013-01-20
, 20:15
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#34
|
The Following User Says Thank You to Win7Mac For This Useful Post: | ||
|
2013-01-20
, 20:47
|
Posts: 359 |
Thanked: 322 times |
Joined on Jun 2010
|
#35
|
v1.1.1 is online. Thanks thedead1440!
Only difference to v1.1: the above icons are included.
The .deb can be gotten here.
Enjoy.
|
2013-01-20
, 20:58
|
|
Community Council |
Posts: 664 |
Thanked: 1,648 times |
Joined on Apr 2012
@ Hamburg
|
#36
|
the link to the .deb for version 1.1.1 of the lpm toggle is 404'ing on me.
The Following User Says Thank You to Win7Mac For This Useful Post: | ||
|
2013-01-21
, 04:40
|
Posts: 649 |
Thanked: 762 times |
Joined on Mar 2012
@ Ohio
|
#37
|
Would it be a wrong place to ask for a Mobile Data toggle? Based on this : http://talk.maemo.org/showpost.php?p...&postcount=983
i messed around for some time, but couldn't get the desktop file working :/
|
2013-01-21
, 04:45
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#38
|
|
2013-01-21
, 11:16
|
|
Posts: 368 |
Thanked: 826 times |
Joined on May 2012
@ India
|
#39
|
#!/bin/sh # Toggle WLAN radio state STATUS=$(/sbin/mcetool --status | grep -v grep | grep WLAN | awk '{print $2}' | head -1) if [ $STATUS == "enabled" ] then sed -i 'On/Off/' /home/user/.local/share/applications/netToggle.desktop `/sbin/mcetool --disable-radio=wlan` else dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:'device' string:'' string:"WLAN On" string:'' string:'' uint32:0 `/sbin/mcetool --enable-radio=wlan` fi
|
2013-01-21
, 12:03
|
Moderator |
Posts: 6,215 |
Thanked: 6,400 times |
Joined on Nov 2011
|
#40
|
The Following 4 Users Say Thank You to thedead1440 For This Useful Post: | ||
i messed around for some time, but couldn't get the desktop file working :/