close all open tasks easily in 1 gesture?
Hi, Ive tried both searches and cant seem 2 find any hints, but does anyone know of a way to kill all open tasks instantly? easily! I always end up with 20 odd conversation windows and it bugs be havin 2 click them 1 by 1 to shut in the task switcher. I am a text addict!
|
Re: close all open tasks easily in 1 gesture?
I think it is a good idea as well.
|
Re: close all open tasks easily in 1 gesture?
Interesting idea that hopefully a developer will implement.
|
Re: close all open tasks easily in 1 gesture?
great idea :D
|
Re: close all open tasks easily in 1 gesture?
doesn't the optimizeN900 script kill all running tasks?
|
Re: close all open tasks easily in 1 gesture?
modified-hildon-desktop has a dbus call to close a specific window. With that it should be easy to write a script to close all windows. You can then call this script with some key combination, or using a desktop widget.
|
Re: close all open tasks easily in 1 gesture?
I got queen bee running with some nice shortcuts, can anyone write a script I could use with that?
And btw it wasnt an idea, it was a question I thought someone must have had this sorted by now. its been bugging me long time. And @ rolan900d I dont want to kill all running processes inc system ones. Just the open windows in the task switcher, or even just the conversation related task windows would be better! Anyone with the know how feeling in the mood to post a script?? :D |
Re: close all open tasks easily in 1 gesture?
actually it works perfect for me already...about once a day.
then I pull out the battery, and reboot. |
Re: close all open tasks easily in 1 gesture?
It might also be possible to use wmctrl for that.
wmctrl -l lists all windows, including their titles, and wmctrl -c closes a window. |
Re: close all open tasks easily in 1 gesture?
Something similar to how in xp 5 firefox windows are grouped together on the taskbar, and the option to close group would be handy..
|
Re: close all open tasks easily in 1 gesture?
Here's my quick 'n' very dirty script.
Note: it requires Bash and wmctrl (apt-get install bash wmctrl) Code:
#!/bin/bashMy coding skills suck - I'm sure there's a much better/optimal way of doing this, but it works for me. |
Re: close all open tasks easily in 1 gesture?
How about linking this function or script to the accelerometer ?
So flipping the device face over, or shaking it, clears all tasks. |
Re: close all open tasks easily in 1 gesture?
When the device is locked there is another window that should probably not be closed: gp_tklock.
It seems to me that the id of all the windows that should not be locked starts with 0x01, and the other (user) windows starts with something else. Using this might make your script simpler, and might allow for not closing other windows that should not be closed, that are not on your list. |
Re: close all open tasks easily in 1 gesture?
Quote:
|
Re: close all open tasks easily in 1 gesture?
Quote:
Quote:
|
Re: close all open tasks easily in 1 gesture?
I've been playing with "gp_tklock" which interestingly is the only ID starting 0x00. It's started when the phone is locked, but if I kill it (wmctrl -c "gp_tklock") it goes and I'm still able to unlock my phone (both with power button/swipe and side flick switch).
Anyway here's a much simplifed version of the script, now killing anything with an ID > 0x01 instead of using a "NOCLOSE" array. Code:
#!/bin/bash |
Re: close all open tasks easily in 1 gesture?
Quote:
ps only jkin about the typical woman bit!!!! perhaps long press on camera button when lens cover is closed or an icon on desktop? |
Re: close all open tasks easily in 1 gesture?
I like the sound of that script, but have no clue how to use it. Is it possible to run it as a queenbee desktop button?
|
Re: close all open tasks easily in 1 gesture?
...Back in my symbian days I was so used to 'Jbak TaskMan'...
Hope we see an TaskManager for the N900 some time. |
Re: close all open tasks easily in 1 gesture?
Quote:
http://natisbad.org/N900/img/n900-to...ons-scaled.png |
Re: close all open tasks easily in 1 gesture?
lol... come on...
|
Re: close all open tasks easily in 1 gesture?
Quote:
|
Re: close all open tasks easily in 1 gesture?
Apologies if this has been mentioned before already. I know it's not quite the same, but it's close enough. Like you said, if you have 21 conversation windows open, select one of them, tap the power button and choose "End Current Task" and all 21 conversation windows will close. I know that doesn't affect the other applications open, but it does make it easier :P
|
Re: close all open tasks easily in 1 gesture?
So has anyone tried this script? I've found it pretty handy - especially when run from the power button menu.
Just occasionally it seems to not close certain windows, and I'm wondering if it's related to the assumtion of the 0x00 / 0x01 ID's being system-specific? |
Re: close all open tasks easily in 1 gesture?
Quote:
|
Re: close all open tasks easily in 1 gesture?
Quote:
I have saved all that code into a file called "close_all.sh", and tried to run it by typing Code:
cd /home/user/Code:
close_all.sh: line 5: syntax error: Bad substitution |
Re: close all open tasks easily in 1 gesture?
It's because it's a bash script.
First make sure you have bash installed ("apt-get install bash" when root user). Then set the exec permission on your file: Code:
chmod +x close_all.shCode:
./close_all.sh |
Re: close all open tasks easily in 1 gesture?
Have you guys ever thought about a type of Sleep/restore function? A way for the user to easily close all tasks and afterwards just as easily open all tasks again?
I'm no developer so I have no idea if this is even possible but it would be a little like firefox's restore function. What do you guys/developers think? Is this possible? It could give us a nice boost in battery power at least :). |
Re: close all open tasks easily in 1 gesture?
Quote:
If you close all windowed applications you might as well restart your phone. Who says a daemon isn't to blame? Hence, I'd say the right way is to use upstart for this (there isnt a sysvinit). Quote:
If you do want to suspend an application you can use kill -19 <pid>, and kill -18 <pid> to continue it. Now, in theory he had a good point, in practice not since the device can sometimes hardly be up for 6 hours. Even laptops would auto suspend or hibernate when juice is too low. |
Re: close all open tasks easily in 1 gesture?
Quote:
|
| All times are GMT. The time now is 10:42. |
vBulletin® Version 3.8.8