Close all application windows at once

Moderator: Forum moderators

Post Reply
User avatar
amethyst
Posts: 2355
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 473 times

Close all application windows at once

Post by amethyst »

wmctrl needs to be installed (my puppy already has it). Remove fake gz extension.

Attachments
CloseAllWindows.gz
(423 Bytes) Downloaded 52 times
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: Close all application windows at once

Post by ljlj »

thanks
it works on debiandog jessie!

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: Close all application windows at once

Post by ljlj »

can you make luncher
for opera mini to put
in startup folder?
thanks

User avatar
amethyst
Posts: 2355
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 473 times

Re: Close all application windows at once

Post by amethyst »

ljlj wrote: Fri Aug 05, 2022 7:46 am

can you make luncher
for opera mini to put
in startup folder?
thanks

Is this the one I published an sfs for some time ago?

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: Close all application windows at once

Post by ljlj »

yes ,yes it is!

User avatar
amethyst
Posts: 2355
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 473 times

Re: Close all application windows at once

Post by amethyst »

ljlj wrote: Fri Aug 05, 2022 8:37 am

yes ,yes it is!

I assume you have it in a running order. I start mine with the following code, you can make a script and place it in your Startup folder. Change the Opera Mini version number if it is different from yours. And make sure that Java and microemulator are already loaded when the script is executed:

Code: Select all

java -cp /microemulator-2.0.4/lib/microemu-jsr-75.jar:/microemulator-2.0.4/microemulator.jar org.microemu.app.Main --impl org.microemu.cldc.file.Filesystem org.microemu.examples.fcview.FCViewMIDlet /microemulator-2.0.4/apps/opera-mini-8.0.35158-advanced-en.jad
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: Close all application windows at once

Post by ljlj »

now i have to open
options
scaled displey
x4
can it be lunched
in single click

User avatar
amethyst
Posts: 2355
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 473 times

Re: Close all application windows at once

Post by amethyst »

The script does not change any settings. It looks like the attached image. Start it by clicking "Start"

Attachments
Screenshot.jpg
Screenshot.jpg (32.73 KiB) Viewed 1025 times
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: Close all application windows at once

Post by ljlj »

now i have to open
options
scaled displey
x4
can it be lunched
in single click

User avatar
amethyst
Posts: 2355
Joined: Tue Dec 22, 2020 6:35 am
Has thanked: 55 times
Been thanked: 473 times

Re: Close all application windows at once

Post by amethyst »

ljlj wrote: Fri Aug 05, 2022 11:24 am

now i have to open
options
scaled displey
x4
can it be lunched
in single click

I've answered your question in the previous post. Once the setup/configuration is correct, it should stay like that (do you save your changes?). The script has nothing to do with the configuration, it just opens the program (see the image that was posted). Anyways - this is in the wrong thread now. Start a new one for Opera Mini.

User avatar
Flash
Moderator
Posts: 897
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 46 times
Been thanked: 105 times

Re: Close all application windows at once

Post by Flash »

I used to have to restart X to shut down Firefox when it froze up. I discovered that restarting the X server will kill all running apps and close their windows. ;)

Chaos coordinator :?
User avatar
gychang
Posts: 553
Joined: Fri Aug 28, 2020 4:51 pm
Location: San Diego, CA
Has thanked: 195 times
Been thanked: 51 times

Re: Close all application windows at once

Post by gychang »

I believe MochiMoppel had already made a small script that does this. (old forum https://oldforum.puppylinux.com/viewtop ... 6&start=30 ) I use his code and bind it to keyboard shortcut.
this is my close-all.sh make sure to make it executable with chmod +x close-all.sh.

Code: Select all

#!/bin/bash
#close all apps

WIN_ID=$(wmctrl -l | awk '{print $1}')
for i in $WIN_ID; do
   wmctrl -ic $i
done

======

Puppy Bytes, utube videos
https://www.youtube.com/channel/UCg-DUU ... u62_iqR-MA

======

Post Reply

Return to “File Management”