|
2010-11-15
, 08:46
|
Posts: 17 |
Thanked: 3 times |
Joined on Nov 2010
|
#922
|
|
2010-11-15
, 08:50
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#923
|
Hi,
anyone knows about some command for hide and show all desktop?
I mean one button will be everytime on desktop and when i press it, each icons, widget etc. hide and next show back.. because if i have some nice wallpaper, it would be fine
|
2010-11-15
, 08:59
|
Posts: 17 |
Thanked: 3 times |
Joined on Nov 2010
|
#924
|
|
2010-11-15
, 11:42
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#925
|
the one u want should be some scprits like this
bcz kernel-config dont have a command "kernel-unload'Code:if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then # add here switch on instructions rootsh /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt echo "ON"; exit 1; fi; if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then # add here switch off instructions rootsh /usr/sbin/kernel-load /etc/default/kernel-power echo "OFF"; exit 0; else # add here switch on instructions rootsh /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt echo "ON"; exit 1;
if u wanna retore ur setting after the button turned off just copy the default setting to the file /etc/default/kernel-power
p.s: the script doesnt work under the rootsh 1.8 if u wanna work just deinstalled the current version and download the old one 1.5 from extra but not extra-devel
|
2010-11-15
, 12:13
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#926
|
No thats not working either.. I actualy created a new file called 'originalkernel.txt' and wrote the commands as NoNoYes suggested:
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot
echo "ON";
exit 1;
fi;
if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
# add here switch off instructions
/usr/sbin/kernel-unload /home/user/MyDocs/originalkernel.txt | sudo gainroot
echo "OFF";
exit 0;
else
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot
echo "ON";
exit 1;
fi;
unfortunately it only loads on Start up (if start up is enabled on the widget) it doesn't want to toggle between on and off states though once activated. I haven't figured out how to create an 'off' state yet
any suggestions or pointers as to what I am doing wrong will be greatly appreciated
>/dev/null
The Following User Says Thank You to No!No!No!Yes! For This Useful Post: | ||
|
2010-11-15
, 12:18
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#927
|
|
2010-11-15
, 12:44
|
|
Posts: 700 |
Thanked: 846 times |
Joined on Nov 2009
|
#928
|
again excuse the ignorance and I appreciate your patience
where exactly am I adding that code to the existing commands?
do you mean something like this:
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null
echo "OFF";
exit 1;
fi;
if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
# add here switch off instructions
/usr/sbin/kernel-unload /home/user/MyDocs/originalkernel.txt | sudo gainroot>/dev/null
echo "OFF";
exit 0;
else
# add here switch on instructions
/usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null
echo "OFF";
exit 1;
fi;
|
2010-11-15
, 12:55
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#929
|
|
2010-11-15
, 13:09
|
Posts: 71 |
Thanked: 4 times |
Joined on Mar 2010
|
#930
|
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null
echo "OFF";exit 1;fi;if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then /usr/sbin/kernel-load /home/user/MyDocs/originalkernel.txt | sudo gainroot>/dev/null
echo "OFF";exit 0; else /usr/sbin/kernel-load /home/user/MyDocs/kernel.txt | sudo gainroot>/dev/null echo "OFF";exit 1;fi;
You can create a 2states button beecon with this script
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then
# add here switch on instructions
for id in id1 id2 id3 ;do
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw${ID} oh.no.more.show
done
echo "ON";
exit 1;
fi;
if [ "$QBW_CURRENT_RESULTS_TEXT" == "ON" ]; then
# add here switch off instructions
for id in id1 id2 id3 ;do
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw${ID} oh.no.more.hide
done
echo "OFF";
exit 0;
else
# add here switch on instructions
for id in id1 id2 id3 ;do
run-standalone.sh dbus-send --session --type=method_call --dest=oh.no.more.qbw /oh/no/more/qbw${ID} oh.no.more.show
done
echo "ON";
exit 1;
fi;
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras