Skip to content

Deals with opening of hundred of terminals during work process

Notifications You must be signed in to change notification settings

tbsd/no_more_terminals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

no_more_terminals

Deals with opening of hundred of terminals during work process

Problem

Every time while I need a terminal I press the shortcut on keyboard which opens a new terminal window, even if there is a free terminal because it's much faster than alt+tab through lots of windows. As a result, I end up with ten terminals that does nothing but clutter up my workspace.

Solution

I've made a script that looking through terminal on current workspace and if there is a free one switching to it and in another case opening a new terminal. Not the most elegant script in the world, but it works somehow.

Usage

Bind this script to your "open terminal" shortcut. Also, it may be useful to create another binding for opening a terminal anyway. Note, that it must be open with a new PID (use --disable-factory option for gnome-terminal).

Requirements

  • gnome-terminal
  • xdotool

Known bugs features

When there is no free terminals it's possible to open multiple terminals by fast executing the script for a several times.

TODO

Maybe add iterating through all terminals when free terminal selected.

About

Deals with opening of hundred of terminals during work process

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages