Fast window switching without Alt-Tab or Command-Tab?











up vote
12
down vote

favorite
8












Alt-Tab or Command-Tab can sometimes be slow, especially when you have many windows open and you frequently switch to only a few of those windows. How do you work around this problem -- any tool to switch to desired windows (most frequently accessed) directly, other than tapping the Alt-Tab combination multiple times?



Note: This should work on Windows 7, Linux and Mac.



Update: Please post your keyboard-shortcut solutions (using the mouse cannot be any faster - especially when you were touch-typing/writing-code before switching to a window).










share|improve this question




























    up vote
    12
    down vote

    favorite
    8












    Alt-Tab or Command-Tab can sometimes be slow, especially when you have many windows open and you frequently switch to only a few of those windows. How do you work around this problem -- any tool to switch to desired windows (most frequently accessed) directly, other than tapping the Alt-Tab combination multiple times?



    Note: This should work on Windows 7, Linux and Mac.



    Update: Please post your keyboard-shortcut solutions (using the mouse cannot be any faster - especially when you were touch-typing/writing-code before switching to a window).










    share|improve this question


























      up vote
      12
      down vote

      favorite
      8









      up vote
      12
      down vote

      favorite
      8






      8





      Alt-Tab or Command-Tab can sometimes be slow, especially when you have many windows open and you frequently switch to only a few of those windows. How do you work around this problem -- any tool to switch to desired windows (most frequently accessed) directly, other than tapping the Alt-Tab combination multiple times?



      Note: This should work on Windows 7, Linux and Mac.



      Update: Please post your keyboard-shortcut solutions (using the mouse cannot be any faster - especially when you were touch-typing/writing-code before switching to a window).










      share|improve this question















      Alt-Tab or Command-Tab can sometimes be slow, especially when you have many windows open and you frequently switch to only a few of those windows. How do you work around this problem -- any tool to switch to desired windows (most frequently accessed) directly, other than tapping the Alt-Tab combination multiple times?



      Note: This should work on Windows 7, Linux and Mac.



      Update: Please post your keyboard-shortcut solutions (using the mouse cannot be any faster - especially when you were touch-typing/writing-code before switching to a window).







      windows linux mac window-manager






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 18 '10 at 6:09









      Arjan

      26.8k1065107




      26.8k1065107










      asked Jan 18 '10 at 4:15









      Sridhar Ratnakumar

      2,05683352




      2,05683352






















          5 Answers
          5






          active

          oldest

          votes

















          up vote
          16
          down vote



          accepted










          Note: latest version of this article can be found here.





          Switching to most frequently used applications is best done by keyboard shortcuts. Here is how I do it on each of the three major platforms.



          GNU/Linux



          I use GNOME as the desktop environment. Avoiding the use of mouse in areas where the same function can be carried out much faster using the keyboard is highly recommended for the added productivity it offers.



          For example, if you are using an external monitor configured using TwinView, it takes a while to move the mouse pointer from a window in your laptop display to a window in the external monitor. If your monitor resolution is high, then it takes even more time.



          What follows is a list of functions which are usually done using the mouse, but have an equivalent keyboard-centric approach as documented here.



          Switching to a particular window



          Let's say that you have about 10 windows open and want to switch to a particular window. 80/20 rule applies here - most window switches you do are for a small subset of all possible windows. In my case, I more often switch to three applications: Emacs, Firefox and Terminal. It is thus more useful to bind predefined keys to these windows.



          The following key combination, when pressed will activate the corresponding window.



          ctrl + alt + u: Firefox
          ctrl + alt + k: Emacs
          ctrl + alt + j: Terminal


          These are the most convenient shortcuts for me, but you can assign different keys as you wish.



          The only question that remains is how do we do this? If you are using Sawfish, for instance, this is a no brainer task. But for other underpowered window managers like Metacity (default in Ubuntu), there is a solution: wmctrl. On Ubuntu, you can use apt-get to install wmctrl. After installing, try running the following commands:



          $ wmctrl -a Firefox
          $ wmctrl -a emacs
          $ wmctrl -a Terminal


          The -a option activates the window whose title matches with the argument given. To map the keys, we use xbindkeys. Install xbindkeys using apt-get and start writing the config file ~/.xbindkeysrc. The following is my configuration:



          "wmctrl -a Firefox"
          m:0xc + c:30
          Control+Alt + u

          "wmctrl -a Terminal"
          m:0xc + c:44
          Control+Alt + j

          "wmctrl -a emacs"
          m:0xc + c:45
          Control+Alt + k


          I usually use the xbindkeys -k command to come up with all those numeric codes you see above. For example, m:0xc corresponds to the Control+Alt key combination. You can also use xbindkeys-config, a graphical configuration utility, to create ~/.xbindkeysrc.



          You may also consider adding xbindkeys to GNOME Session Preferences to ensure automatic startup on every boot.



          Switching to a particular Firefox tab



          Mouseless tab switching in Firefox can be done in several ways:




          1. Press Alt+n where n is the tab number. For example, press Alt+2 to switch to the second tab. Apart from switching to the first, second or third tab, this is usually not a very useful.


          2. Ubiquity's tab command. You press Ctrl+space and then type 'tab gmai' to switch to your Gmail tab. This is indeed useful especially when you have a lot of tabs opened. If the tab command is more frequently used than other commands beginning with t, then you can simply type 't gmai' instead of 'tab gmai'.
            Switching to a particular Emacs buffer



          Emacs has the excellent ido mode that enables you to interactively fuzzy match buffer names when switching buffers. Normally, one presses C-x b in order to bring up the minibuffer and then types the buffer name manually with tab completion. With ido mode, typing 'ny', for example, will match the buffer main.py; and it does that interactively without you having to press Enter key. Use the following elisp code in your .emacs after adding ido.el to your path:



          ;; Buffer switching
          (require 'ido)
          (ido-mode t)
          (setq ido-enable-flex-matching t)

          (global-set-key (kbd "M-i") 'ido-switch-buffer)


          Now press Alt+i to switch buffers interactively.



          The latest version of my own .xbindkeysrc can be found here.



          Microsoft Windows



          The same can also be done on Microsoft Windows using a program called AutoHotkey.



          Here's the AutoHotKey script I use on my Windows-based laptop:



          ; match window title anywhere
          SetTitleMatchMode 2

          ^!u::WinActivate Opera
          ^!j::WinActivate ActiveState Komodo
          ^!k::WinActivate sridharr@double
          ^!h::WinActivate Mozilla Thunderbird


          Apple Mac OS X



          On Mac, there is no Unixy way to assign global keyboard shortcuts (eg: xbindkeys) .. but there are several workarounds. Thanks to this serverfault post, I found Quicksilver to be a good enough way to assign keyboard shortcuts to activate specific applications.



          For detailed instructions on assigning global keyboard shortcuts, follow this post. As the settings will be saved to the file ~/Library/Application Support/Quicksilver/Triggers.plist, you can easily move it around or symlink it to your Dropbox directory.






          share|improve this answer



















          • 1




            Im impressed. Nice formatting.
            – John T
            Jan 18 '10 at 4:29


















          up vote
          5
          down vote













          VistaSwitcher is an elegant and powerful task management utility for Windows OS. Once installed, it replaces the default Windows Alt-Tab dialog with a nice box that shows a list of all running tasks, with their names and preview snapshots, and enables the user to take actions on them using the mouse and keyboard shortcuts. With just one click, you can switch tasks, minimize, maximize, restore the main window, or close the process.



          alt text



          VistaSwitcher is freeware (like it predecessor Taskswitch XP)






          share|improve this answer























          • I like VistaSwitcher a lot!
            – Ivo Flipse
            Jan 18 '10 at 13:46


















          up vote
          3
          down vote













          Switcher for Windows Vista is extremely handy for this, especially when you always have at least 10+ windows open like me.



          It has a feature where you can search the title names of all your open windows to find it faster (may be hard to see, check top right corner):



          enter image description here






          share|improve this answer























          • Nice, no mouse is required.
            – Sridhar Ratnakumar
            Jan 18 '10 at 5:16


















          up vote
          2
          down vote













          Middle-clicking on a metacity title bar will send that window to the bottom of the z-order, activating the next window in the order and revealing any windows that it may have obscured.






          share|improve this answer




























            up vote
            0
            down vote













            On Windows you can use the application Switcheroo, you just hit its keyboard shortcut and start typing the name of the window or the name of the application that the window belongs to and immediately switch to it.



            For Linux, there is a similar application called Rofi, which is a window switcher, application launcher and dmenu replacement.






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f97149%2ffast-window-switching-without-alt-tab-or-command-tab%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              16
              down vote



              accepted










              Note: latest version of this article can be found here.





              Switching to most frequently used applications is best done by keyboard shortcuts. Here is how I do it on each of the three major platforms.



              GNU/Linux



              I use GNOME as the desktop environment. Avoiding the use of mouse in areas where the same function can be carried out much faster using the keyboard is highly recommended for the added productivity it offers.



              For example, if you are using an external monitor configured using TwinView, it takes a while to move the mouse pointer from a window in your laptop display to a window in the external monitor. If your monitor resolution is high, then it takes even more time.



              What follows is a list of functions which are usually done using the mouse, but have an equivalent keyboard-centric approach as documented here.



              Switching to a particular window



              Let's say that you have about 10 windows open and want to switch to a particular window. 80/20 rule applies here - most window switches you do are for a small subset of all possible windows. In my case, I more often switch to three applications: Emacs, Firefox and Terminal. It is thus more useful to bind predefined keys to these windows.



              The following key combination, when pressed will activate the corresponding window.



              ctrl + alt + u: Firefox
              ctrl + alt + k: Emacs
              ctrl + alt + j: Terminal


              These are the most convenient shortcuts for me, but you can assign different keys as you wish.



              The only question that remains is how do we do this? If you are using Sawfish, for instance, this is a no brainer task. But for other underpowered window managers like Metacity (default in Ubuntu), there is a solution: wmctrl. On Ubuntu, you can use apt-get to install wmctrl. After installing, try running the following commands:



              $ wmctrl -a Firefox
              $ wmctrl -a emacs
              $ wmctrl -a Terminal


              The -a option activates the window whose title matches with the argument given. To map the keys, we use xbindkeys. Install xbindkeys using apt-get and start writing the config file ~/.xbindkeysrc. The following is my configuration:



              "wmctrl -a Firefox"
              m:0xc + c:30
              Control+Alt + u

              "wmctrl -a Terminal"
              m:0xc + c:44
              Control+Alt + j

              "wmctrl -a emacs"
              m:0xc + c:45
              Control+Alt + k


              I usually use the xbindkeys -k command to come up with all those numeric codes you see above. For example, m:0xc corresponds to the Control+Alt key combination. You can also use xbindkeys-config, a graphical configuration utility, to create ~/.xbindkeysrc.



              You may also consider adding xbindkeys to GNOME Session Preferences to ensure automatic startup on every boot.



              Switching to a particular Firefox tab



              Mouseless tab switching in Firefox can be done in several ways:




              1. Press Alt+n where n is the tab number. For example, press Alt+2 to switch to the second tab. Apart from switching to the first, second or third tab, this is usually not a very useful.


              2. Ubiquity's tab command. You press Ctrl+space and then type 'tab gmai' to switch to your Gmail tab. This is indeed useful especially when you have a lot of tabs opened. If the tab command is more frequently used than other commands beginning with t, then you can simply type 't gmai' instead of 'tab gmai'.
                Switching to a particular Emacs buffer



              Emacs has the excellent ido mode that enables you to interactively fuzzy match buffer names when switching buffers. Normally, one presses C-x b in order to bring up the minibuffer and then types the buffer name manually with tab completion. With ido mode, typing 'ny', for example, will match the buffer main.py; and it does that interactively without you having to press Enter key. Use the following elisp code in your .emacs after adding ido.el to your path:



              ;; Buffer switching
              (require 'ido)
              (ido-mode t)
              (setq ido-enable-flex-matching t)

              (global-set-key (kbd "M-i") 'ido-switch-buffer)


              Now press Alt+i to switch buffers interactively.



              The latest version of my own .xbindkeysrc can be found here.



              Microsoft Windows



              The same can also be done on Microsoft Windows using a program called AutoHotkey.



              Here's the AutoHotKey script I use on my Windows-based laptop:



              ; match window title anywhere
              SetTitleMatchMode 2

              ^!u::WinActivate Opera
              ^!j::WinActivate ActiveState Komodo
              ^!k::WinActivate sridharr@double
              ^!h::WinActivate Mozilla Thunderbird


              Apple Mac OS X



              On Mac, there is no Unixy way to assign global keyboard shortcuts (eg: xbindkeys) .. but there are several workarounds. Thanks to this serverfault post, I found Quicksilver to be a good enough way to assign keyboard shortcuts to activate specific applications.



              For detailed instructions on assigning global keyboard shortcuts, follow this post. As the settings will be saved to the file ~/Library/Application Support/Quicksilver/Triggers.plist, you can easily move it around or symlink it to your Dropbox directory.






              share|improve this answer



















              • 1




                Im impressed. Nice formatting.
                – John T
                Jan 18 '10 at 4:29















              up vote
              16
              down vote



              accepted










              Note: latest version of this article can be found here.





              Switching to most frequently used applications is best done by keyboard shortcuts. Here is how I do it on each of the three major platforms.



              GNU/Linux



              I use GNOME as the desktop environment. Avoiding the use of mouse in areas where the same function can be carried out much faster using the keyboard is highly recommended for the added productivity it offers.



              For example, if you are using an external monitor configured using TwinView, it takes a while to move the mouse pointer from a window in your laptop display to a window in the external monitor. If your monitor resolution is high, then it takes even more time.



              What follows is a list of functions which are usually done using the mouse, but have an equivalent keyboard-centric approach as documented here.



              Switching to a particular window



              Let's say that you have about 10 windows open and want to switch to a particular window. 80/20 rule applies here - most window switches you do are for a small subset of all possible windows. In my case, I more often switch to three applications: Emacs, Firefox and Terminal. It is thus more useful to bind predefined keys to these windows.



              The following key combination, when pressed will activate the corresponding window.



              ctrl + alt + u: Firefox
              ctrl + alt + k: Emacs
              ctrl + alt + j: Terminal


              These are the most convenient shortcuts for me, but you can assign different keys as you wish.



              The only question that remains is how do we do this? If you are using Sawfish, for instance, this is a no brainer task. But for other underpowered window managers like Metacity (default in Ubuntu), there is a solution: wmctrl. On Ubuntu, you can use apt-get to install wmctrl. After installing, try running the following commands:



              $ wmctrl -a Firefox
              $ wmctrl -a emacs
              $ wmctrl -a Terminal


              The -a option activates the window whose title matches with the argument given. To map the keys, we use xbindkeys. Install xbindkeys using apt-get and start writing the config file ~/.xbindkeysrc. The following is my configuration:



              "wmctrl -a Firefox"
              m:0xc + c:30
              Control+Alt + u

              "wmctrl -a Terminal"
              m:0xc + c:44
              Control+Alt + j

              "wmctrl -a emacs"
              m:0xc + c:45
              Control+Alt + k


              I usually use the xbindkeys -k command to come up with all those numeric codes you see above. For example, m:0xc corresponds to the Control+Alt key combination. You can also use xbindkeys-config, a graphical configuration utility, to create ~/.xbindkeysrc.



              You may also consider adding xbindkeys to GNOME Session Preferences to ensure automatic startup on every boot.



              Switching to a particular Firefox tab



              Mouseless tab switching in Firefox can be done in several ways:




              1. Press Alt+n where n is the tab number. For example, press Alt+2 to switch to the second tab. Apart from switching to the first, second or third tab, this is usually not a very useful.


              2. Ubiquity's tab command. You press Ctrl+space and then type 'tab gmai' to switch to your Gmail tab. This is indeed useful especially when you have a lot of tabs opened. If the tab command is more frequently used than other commands beginning with t, then you can simply type 't gmai' instead of 'tab gmai'.
                Switching to a particular Emacs buffer



              Emacs has the excellent ido mode that enables you to interactively fuzzy match buffer names when switching buffers. Normally, one presses C-x b in order to bring up the minibuffer and then types the buffer name manually with tab completion. With ido mode, typing 'ny', for example, will match the buffer main.py; and it does that interactively without you having to press Enter key. Use the following elisp code in your .emacs after adding ido.el to your path:



              ;; Buffer switching
              (require 'ido)
              (ido-mode t)
              (setq ido-enable-flex-matching t)

              (global-set-key (kbd "M-i") 'ido-switch-buffer)


              Now press Alt+i to switch buffers interactively.



              The latest version of my own .xbindkeysrc can be found here.



              Microsoft Windows



              The same can also be done on Microsoft Windows using a program called AutoHotkey.



              Here's the AutoHotKey script I use on my Windows-based laptop:



              ; match window title anywhere
              SetTitleMatchMode 2

              ^!u::WinActivate Opera
              ^!j::WinActivate ActiveState Komodo
              ^!k::WinActivate sridharr@double
              ^!h::WinActivate Mozilla Thunderbird


              Apple Mac OS X



              On Mac, there is no Unixy way to assign global keyboard shortcuts (eg: xbindkeys) .. but there are several workarounds. Thanks to this serverfault post, I found Quicksilver to be a good enough way to assign keyboard shortcuts to activate specific applications.



              For detailed instructions on assigning global keyboard shortcuts, follow this post. As the settings will be saved to the file ~/Library/Application Support/Quicksilver/Triggers.plist, you can easily move it around or symlink it to your Dropbox directory.






              share|improve this answer



















              • 1




                Im impressed. Nice formatting.
                – John T
                Jan 18 '10 at 4:29













              up vote
              16
              down vote



              accepted







              up vote
              16
              down vote



              accepted






              Note: latest version of this article can be found here.





              Switching to most frequently used applications is best done by keyboard shortcuts. Here is how I do it on each of the three major platforms.



              GNU/Linux



              I use GNOME as the desktop environment. Avoiding the use of mouse in areas where the same function can be carried out much faster using the keyboard is highly recommended for the added productivity it offers.



              For example, if you are using an external monitor configured using TwinView, it takes a while to move the mouse pointer from a window in your laptop display to a window in the external monitor. If your monitor resolution is high, then it takes even more time.



              What follows is a list of functions which are usually done using the mouse, but have an equivalent keyboard-centric approach as documented here.



              Switching to a particular window



              Let's say that you have about 10 windows open and want to switch to a particular window. 80/20 rule applies here - most window switches you do are for a small subset of all possible windows. In my case, I more often switch to three applications: Emacs, Firefox and Terminal. It is thus more useful to bind predefined keys to these windows.



              The following key combination, when pressed will activate the corresponding window.



              ctrl + alt + u: Firefox
              ctrl + alt + k: Emacs
              ctrl + alt + j: Terminal


              These are the most convenient shortcuts for me, but you can assign different keys as you wish.



              The only question that remains is how do we do this? If you are using Sawfish, for instance, this is a no brainer task. But for other underpowered window managers like Metacity (default in Ubuntu), there is a solution: wmctrl. On Ubuntu, you can use apt-get to install wmctrl. After installing, try running the following commands:



              $ wmctrl -a Firefox
              $ wmctrl -a emacs
              $ wmctrl -a Terminal


              The -a option activates the window whose title matches with the argument given. To map the keys, we use xbindkeys. Install xbindkeys using apt-get and start writing the config file ~/.xbindkeysrc. The following is my configuration:



              "wmctrl -a Firefox"
              m:0xc + c:30
              Control+Alt + u

              "wmctrl -a Terminal"
              m:0xc + c:44
              Control+Alt + j

              "wmctrl -a emacs"
              m:0xc + c:45
              Control+Alt + k


              I usually use the xbindkeys -k command to come up with all those numeric codes you see above. For example, m:0xc corresponds to the Control+Alt key combination. You can also use xbindkeys-config, a graphical configuration utility, to create ~/.xbindkeysrc.



              You may also consider adding xbindkeys to GNOME Session Preferences to ensure automatic startup on every boot.



              Switching to a particular Firefox tab



              Mouseless tab switching in Firefox can be done in several ways:




              1. Press Alt+n where n is the tab number. For example, press Alt+2 to switch to the second tab. Apart from switching to the first, second or third tab, this is usually not a very useful.


              2. Ubiquity's tab command. You press Ctrl+space and then type 'tab gmai' to switch to your Gmail tab. This is indeed useful especially when you have a lot of tabs opened. If the tab command is more frequently used than other commands beginning with t, then you can simply type 't gmai' instead of 'tab gmai'.
                Switching to a particular Emacs buffer



              Emacs has the excellent ido mode that enables you to interactively fuzzy match buffer names when switching buffers. Normally, one presses C-x b in order to bring up the minibuffer and then types the buffer name manually with tab completion. With ido mode, typing 'ny', for example, will match the buffer main.py; and it does that interactively without you having to press Enter key. Use the following elisp code in your .emacs after adding ido.el to your path:



              ;; Buffer switching
              (require 'ido)
              (ido-mode t)
              (setq ido-enable-flex-matching t)

              (global-set-key (kbd "M-i") 'ido-switch-buffer)


              Now press Alt+i to switch buffers interactively.



              The latest version of my own .xbindkeysrc can be found here.



              Microsoft Windows



              The same can also be done on Microsoft Windows using a program called AutoHotkey.



              Here's the AutoHotKey script I use on my Windows-based laptop:



              ; match window title anywhere
              SetTitleMatchMode 2

              ^!u::WinActivate Opera
              ^!j::WinActivate ActiveState Komodo
              ^!k::WinActivate sridharr@double
              ^!h::WinActivate Mozilla Thunderbird


              Apple Mac OS X



              On Mac, there is no Unixy way to assign global keyboard shortcuts (eg: xbindkeys) .. but there are several workarounds. Thanks to this serverfault post, I found Quicksilver to be a good enough way to assign keyboard shortcuts to activate specific applications.



              For detailed instructions on assigning global keyboard shortcuts, follow this post. As the settings will be saved to the file ~/Library/Application Support/Quicksilver/Triggers.plist, you can easily move it around or symlink it to your Dropbox directory.






              share|improve this answer














              Note: latest version of this article can be found here.





              Switching to most frequently used applications is best done by keyboard shortcuts. Here is how I do it on each of the three major platforms.



              GNU/Linux



              I use GNOME as the desktop environment. Avoiding the use of mouse in areas where the same function can be carried out much faster using the keyboard is highly recommended for the added productivity it offers.



              For example, if you are using an external monitor configured using TwinView, it takes a while to move the mouse pointer from a window in your laptop display to a window in the external monitor. If your monitor resolution is high, then it takes even more time.



              What follows is a list of functions which are usually done using the mouse, but have an equivalent keyboard-centric approach as documented here.



              Switching to a particular window



              Let's say that you have about 10 windows open and want to switch to a particular window. 80/20 rule applies here - most window switches you do are for a small subset of all possible windows. In my case, I more often switch to three applications: Emacs, Firefox and Terminal. It is thus more useful to bind predefined keys to these windows.



              The following key combination, when pressed will activate the corresponding window.



              ctrl + alt + u: Firefox
              ctrl + alt + k: Emacs
              ctrl + alt + j: Terminal


              These are the most convenient shortcuts for me, but you can assign different keys as you wish.



              The only question that remains is how do we do this? If you are using Sawfish, for instance, this is a no brainer task. But for other underpowered window managers like Metacity (default in Ubuntu), there is a solution: wmctrl. On Ubuntu, you can use apt-get to install wmctrl. After installing, try running the following commands:



              $ wmctrl -a Firefox
              $ wmctrl -a emacs
              $ wmctrl -a Terminal


              The -a option activates the window whose title matches with the argument given. To map the keys, we use xbindkeys. Install xbindkeys using apt-get and start writing the config file ~/.xbindkeysrc. The following is my configuration:



              "wmctrl -a Firefox"
              m:0xc + c:30
              Control+Alt + u

              "wmctrl -a Terminal"
              m:0xc + c:44
              Control+Alt + j

              "wmctrl -a emacs"
              m:0xc + c:45
              Control+Alt + k


              I usually use the xbindkeys -k command to come up with all those numeric codes you see above. For example, m:0xc corresponds to the Control+Alt key combination. You can also use xbindkeys-config, a graphical configuration utility, to create ~/.xbindkeysrc.



              You may also consider adding xbindkeys to GNOME Session Preferences to ensure automatic startup on every boot.



              Switching to a particular Firefox tab



              Mouseless tab switching in Firefox can be done in several ways:




              1. Press Alt+n where n is the tab number. For example, press Alt+2 to switch to the second tab. Apart from switching to the first, second or third tab, this is usually not a very useful.


              2. Ubiquity's tab command. You press Ctrl+space and then type 'tab gmai' to switch to your Gmail tab. This is indeed useful especially when you have a lot of tabs opened. If the tab command is more frequently used than other commands beginning with t, then you can simply type 't gmai' instead of 'tab gmai'.
                Switching to a particular Emacs buffer



              Emacs has the excellent ido mode that enables you to interactively fuzzy match buffer names when switching buffers. Normally, one presses C-x b in order to bring up the minibuffer and then types the buffer name manually with tab completion. With ido mode, typing 'ny', for example, will match the buffer main.py; and it does that interactively without you having to press Enter key. Use the following elisp code in your .emacs after adding ido.el to your path:



              ;; Buffer switching
              (require 'ido)
              (ido-mode t)
              (setq ido-enable-flex-matching t)

              (global-set-key (kbd "M-i") 'ido-switch-buffer)


              Now press Alt+i to switch buffers interactively.



              The latest version of my own .xbindkeysrc can be found here.



              Microsoft Windows



              The same can also be done on Microsoft Windows using a program called AutoHotkey.



              Here's the AutoHotKey script I use on my Windows-based laptop:



              ; match window title anywhere
              SetTitleMatchMode 2

              ^!u::WinActivate Opera
              ^!j::WinActivate ActiveState Komodo
              ^!k::WinActivate sridharr@double
              ^!h::WinActivate Mozilla Thunderbird


              Apple Mac OS X



              On Mac, there is no Unixy way to assign global keyboard shortcuts (eg: xbindkeys) .. but there are several workarounds. Thanks to this serverfault post, I found Quicksilver to be a good enough way to assign keyboard shortcuts to activate specific applications.



              For detailed instructions on assigning global keyboard shortcuts, follow this post. As the settings will be saved to the file ~/Library/Application Support/Quicksilver/Triggers.plist, you can easily move it around or symlink it to your Dropbox directory.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 13 '17 at 12:14









              Community

              1




              1










              answered Jan 18 '10 at 4:16









              Sridhar Ratnakumar

              2,05683352




              2,05683352








              • 1




                Im impressed. Nice formatting.
                – John T
                Jan 18 '10 at 4:29














              • 1




                Im impressed. Nice formatting.
                – John T
                Jan 18 '10 at 4:29








              1




              1




              Im impressed. Nice formatting.
              – John T
              Jan 18 '10 at 4:29




              Im impressed. Nice formatting.
              – John T
              Jan 18 '10 at 4:29












              up vote
              5
              down vote













              VistaSwitcher is an elegant and powerful task management utility for Windows OS. Once installed, it replaces the default Windows Alt-Tab dialog with a nice box that shows a list of all running tasks, with their names and preview snapshots, and enables the user to take actions on them using the mouse and keyboard shortcuts. With just one click, you can switch tasks, minimize, maximize, restore the main window, or close the process.



              alt text



              VistaSwitcher is freeware (like it predecessor Taskswitch XP)






              share|improve this answer























              • I like VistaSwitcher a lot!
                – Ivo Flipse
                Jan 18 '10 at 13:46















              up vote
              5
              down vote













              VistaSwitcher is an elegant and powerful task management utility for Windows OS. Once installed, it replaces the default Windows Alt-Tab dialog with a nice box that shows a list of all running tasks, with their names and preview snapshots, and enables the user to take actions on them using the mouse and keyboard shortcuts. With just one click, you can switch tasks, minimize, maximize, restore the main window, or close the process.



              alt text



              VistaSwitcher is freeware (like it predecessor Taskswitch XP)






              share|improve this answer























              • I like VistaSwitcher a lot!
                – Ivo Flipse
                Jan 18 '10 at 13:46













              up vote
              5
              down vote










              up vote
              5
              down vote









              VistaSwitcher is an elegant and powerful task management utility for Windows OS. Once installed, it replaces the default Windows Alt-Tab dialog with a nice box that shows a list of all running tasks, with their names and preview snapshots, and enables the user to take actions on them using the mouse and keyboard shortcuts. With just one click, you can switch tasks, minimize, maximize, restore the main window, or close the process.



              alt text



              VistaSwitcher is freeware (like it predecessor Taskswitch XP)






              share|improve this answer














              VistaSwitcher is an elegant and powerful task management utility for Windows OS. Once installed, it replaces the default Windows Alt-Tab dialog with a nice box that shows a list of all running tasks, with their names and preview snapshots, and enables the user to take actions on them using the mouse and keyboard shortcuts. With just one click, you can switch tasks, minimize, maximize, restore the main window, or close the process.



              alt text



              VistaSwitcher is freeware (like it predecessor Taskswitch XP)







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 31 '11 at 6:49









              3498DB

              15.6k114762




              15.6k114762










              answered Jan 18 '10 at 4:19







              Molly7244



















              • I like VistaSwitcher a lot!
                – Ivo Flipse
                Jan 18 '10 at 13:46


















              • I like VistaSwitcher a lot!
                – Ivo Flipse
                Jan 18 '10 at 13:46
















              I like VistaSwitcher a lot!
              – Ivo Flipse
              Jan 18 '10 at 13:46




              I like VistaSwitcher a lot!
              – Ivo Flipse
              Jan 18 '10 at 13:46










              up vote
              3
              down vote













              Switcher for Windows Vista is extremely handy for this, especially when you always have at least 10+ windows open like me.



              It has a feature where you can search the title names of all your open windows to find it faster (may be hard to see, check top right corner):



              enter image description here






              share|improve this answer























              • Nice, no mouse is required.
                – Sridhar Ratnakumar
                Jan 18 '10 at 5:16















              up vote
              3
              down vote













              Switcher for Windows Vista is extremely handy for this, especially when you always have at least 10+ windows open like me.



              It has a feature where you can search the title names of all your open windows to find it faster (may be hard to see, check top right corner):



              enter image description here






              share|improve this answer























              • Nice, no mouse is required.
                – Sridhar Ratnakumar
                Jan 18 '10 at 5:16













              up vote
              3
              down vote










              up vote
              3
              down vote









              Switcher for Windows Vista is extremely handy for this, especially when you always have at least 10+ windows open like me.



              It has a feature where you can search the title names of all your open windows to find it faster (may be hard to see, check top right corner):



              enter image description here






              share|improve this answer














              Switcher for Windows Vista is extremely handy for this, especially when you always have at least 10+ windows open like me.



              It has a feature where you can search the title names of all your open windows to find it faster (may be hard to see, check top right corner):



              enter image description here







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 31 '11 at 6:49









              3498DB

              15.6k114762




              15.6k114762










              answered Jan 18 '10 at 4:32









              John T

              141k20291328




              141k20291328












              • Nice, no mouse is required.
                – Sridhar Ratnakumar
                Jan 18 '10 at 5:16


















              • Nice, no mouse is required.
                – Sridhar Ratnakumar
                Jan 18 '10 at 5:16
















              Nice, no mouse is required.
              – Sridhar Ratnakumar
              Jan 18 '10 at 5:16




              Nice, no mouse is required.
              – Sridhar Ratnakumar
              Jan 18 '10 at 5:16










              up vote
              2
              down vote













              Middle-clicking on a metacity title bar will send that window to the bottom of the z-order, activating the next window in the order and revealing any windows that it may have obscured.






              share|improve this answer

























                up vote
                2
                down vote













                Middle-clicking on a metacity title bar will send that window to the bottom of the z-order, activating the next window in the order and revealing any windows that it may have obscured.






                share|improve this answer























                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Middle-clicking on a metacity title bar will send that window to the bottom of the z-order, activating the next window in the order and revealing any windows that it may have obscured.






                  share|improve this answer












                  Middle-clicking on a metacity title bar will send that window to the bottom of the z-order, activating the next window in the order and revealing any windows that it may have obscured.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 5 '10 at 3:49









                  Ignacio Vazquez-Abrams

                  95.3k6150208




                  95.3k6150208






















                      up vote
                      0
                      down vote













                      On Windows you can use the application Switcheroo, you just hit its keyboard shortcut and start typing the name of the window or the name of the application that the window belongs to and immediately switch to it.



                      For Linux, there is a similar application called Rofi, which is a window switcher, application launcher and dmenu replacement.






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        On Windows you can use the application Switcheroo, you just hit its keyboard shortcut and start typing the name of the window or the name of the application that the window belongs to and immediately switch to it.



                        For Linux, there is a similar application called Rofi, which is a window switcher, application launcher and dmenu replacement.






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          On Windows you can use the application Switcheroo, you just hit its keyboard shortcut and start typing the name of the window or the name of the application that the window belongs to and immediately switch to it.



                          For Linux, there is a similar application called Rofi, which is a window switcher, application launcher and dmenu replacement.






                          share|improve this answer












                          On Windows you can use the application Switcheroo, you just hit its keyboard shortcut and start typing the name of the window or the name of the application that the window belongs to and immediately switch to it.



                          For Linux, there is a similar application called Rofi, which is a window switcher, application launcher and dmenu replacement.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 25 at 8:02









                          Ghos3t

                          252210




                          252210






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f97149%2ffast-window-switching-without-alt-tab-or-command-tab%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Сан-Квентин

                              8-я гвардейская общевойсковая армия

                              Алькесар