Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
I would like a script "closeall/killall this_App" when clicking two quick times in the shortcut application. Do you happen to know about some good code or a properly way to implement this?
Ive done this script to close all dolphin opened instances when clicking fast two followed times (time lower than 200 msg is ok) , and seems to work ok, thought I feel Its giving some overhead or retard when launching dolphin with it.
- Clicking One time >> Open dolphin explorer
- Clicking Two fast followed times >> Close All dolphin instances.
It's pretty interesting. I don't think it will be consistent because the amount of time it takes to launch bash, open dolphin & then record the time will not be predictable enough to make it reliable. System load and other things like disk access might throw it off? Also, it will close all dolphin instances? Not just ones you launch with single click on this script?
If I was going to try it, I'd use dash, and record/compare the time as the first commands in the script.
There's probably a way to get X to detect and report a dbl click, have you searched the repo for some older cli X apps? I know there's one that detects idle, but I can't remember the tool. Try that direction maybe?
bw123 wrote:It's pretty interesting. I don't think it will be consistent because the amount of time it takes to launch bash, open dolphin & then record the time will not be predictable enough to make it reliable. System load and other things like disk access might throw it off? Also, it will close all dolphin instances? Not just ones you launch with single click on this script?
If I was going to try it, I'd use dash, and record/compare the time as the first commands in the script.
There's probably a way to get X to detect and report a dbl click, have you searched the repo for some older cli X apps? I know there's one that detects idle, but I can't remember the tool. Try that direction maybe?
good luck
You can use it, Its working very, very well, you can check it (it doesnt need any tweaking).. At first I thought there was some kind of lagging, but It was feeling biasing. I calibrated time clicking gap to 200mseg; lower than that, you can'r trigger double click with your hand, bigger than that, you have the risk to close all instances if you open very followed several instances.. Im king of glad with this code of my own, You can also use it for konsoles same code (very usefull). I use instead one single click closeall script for konsoles.
It took me several hours make it work, Im not a developer so...
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...
That's great, thanks for sharing the script. I'm more of a "one fm" kind of guy. I only use midnight commander in one instance to manage files on the system. Dolphin is just too damn slow and GUIey, as every X app is. I can't imagine why I would need more than one fm open? But I will test it out, cuz I love scripts.
bw123 wrote:That's great, thanks for sharing the script. I'm more of a "one fm" kind of guy. I only use midnight commander in one instance to manage files on the system. Dolphin is just too damn slow and GUIey, as every X app is. I can't imagine why I would need more than one fm open? But I will test it out, cuz I love scripts.
hehehe I also enjoy making scripts, but Im very bad at that. Ive just seen How many script Ive done and keep, and they're around 360..I think Ive installed aroun 100 or so, many of them I dont remember for what purpose I make them. Ive a script foder where I drop every script I develop and find usefull to keep. fortunately I can find anything in my home folder thanks to recoll-index.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...
if you use bash, use [[, not [.
if you use [, use quotes.
and don't use uppercase variables in your scripts.
don't use cat to get content of files, but "read".