Skip to content

Easily switch to certain windows using the command line or shortcuts.

License

Notifications You must be signed in to change notification settings

vincentrolfs/window-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Window switcher

Installation

sudo apt install wmctrl

Usage

List currently open windows

./list.sh

Switch to a window

./switch.sh WINDOW_NAME

For example, to switch to Chrome:

./switch.sh google-chrome.Google-chrome

If you supply multiple arguments, it will switch to the first window in the list which exists:

# Navigate to chrome if exists, else firefox
./switch.sh google-chrome.Google-chrome Navigator.firefox

Define your own cases

I created the script cases.sh in order to easily define the possible windows which I want to reach by shortcuts. For example, I have set ctrl+1 to ./cases.sh 1.

About

Easily switch to certain windows using the command line or shortcuts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages