Skip to content

A Python script that enables one to switch to an arbitrary window through a key shortcut. Based on xdotool X11 utility in Linux.

License

Notifications You must be signed in to change notification settings

jerryzhenleicai/linux-window-switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

For Linux and other X Window System based desktop OS, this Python script allows you to switch to any given window through a keyboard shortcut, which is in most cases faster than mouse clicking or Alt-Tab.

This tool depends on the xdotool utility from X Windows (apt install xdotool for Debian etc).

INSTALL:

Just save this file somewhere on your disk.

Run it:

To switch to the Chrome brower or Emacs for examples, run

python window_switch.py chrome

or

python window_switch.py emacs

You can bind hot key shortcuts to these commands (in Gnome for example), so Ctl-Alt-G will switch to Chrome.

About

A Python script that enables one to switch to an arbitrary window through a key shortcut. Based on xdotool X11 utility in Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages