Quit applications while switching with alt + tab?

Is it possible to quit applications while switching through them with Alt+Tab? When I used a Mac many years ago and you were switching through open applications with (let's say Command+Tab) you could let go off tab and then hit Q to quit the app.

How can I do this same thing in Ubuntu 14.04?

3

5 Answers

If you have pushed alt + tab, you should see something like this:

Alt+Tab app switching interface

If you select the program you wish to close and then release tab and press ~ it will open a smaller version of the application in the switcher and it will display the X in the top left corner as such:

close button

If you click the X it will close the program.

5

Simply press Q instead of Tab, while you are holding Alt.
(verified in Ubuntu 16.04 so far)

Details:

You are holding Alt while you press Tab repeatedly to switch to different apps. The thumbnail display of apps is the app switcher, and it won't disappear until you release Alt. Once the app you desire is highlighted, if you press Q, the switcher will send that app an "Alt+Q" command, and the app will close. You can then continue to Alt+Tab to another app, and repeat if needed.

Notes:

There are some apps like Sublime 2 that do not properly respect the request for close, and only the application window will disappear; it will remain open in the background! If you re-"open" Sublime, you'll see your work intact. In fact, if you haven't saved it to disk, you may incorrectly believe you're using your changes, when they are not on disk. To date, this is the only app I've seen disrespect the request for close. YMMV. Be careful.

Discovery:

I know this because I accidentally press Alt+Q all the time when my fingers slip off of the TAB key during Alt+Tab. I found your answer while looking for a way to shut this off. ;)

1

For me it works pressing W instead of Q (after pressing Alt + Tab of course). I discovered it by pressing the key accidentally.

I have Ubuntu 19.10

2

I may have a workaround to quit an application from the switcher:

  1. Install compizconfig-settings-manager and xdotool
  2. In the compizConfig Settings Manager, go to General->Commands
  3. Write a command (command line 0 is free) as xdotool keyup Alt; xdotool key Alt+F4
  4. Go to the Key Bindings tab
  5. Create a key binding to run the command (Run command 0 is you wrote the command line 1. I assigned the key <Alt>q for myself

Now, from the switcher, select an app (Alt Tab Tab) and keep the Alt key down. And press the q key. The selected app should stop.

0

This works for me;

  1. alt-tab to bring up the application switcher

    (keep alt key pressed during step 2 & 3)

  2. navigate with the arrow keys to the application that you want to quit
  3. press ctrl + q

hope it helped

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like