Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mooz/togwin
Toggle display of the certain window
https://github.com/mooz/togwin
Last synced: about 1 month ago
JSON representation
Toggle display of the certain window
- Host: GitHub
- URL: https://github.com/mooz/togwin
- Owner: mooz
- Created: 2010-12-27T12:38:48.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2010-12-29T08:19:21.000Z (almost 14 years ago)
- Last Synced: 2023-04-19T13:57:29.172Z (over 1 year ago)
- Homepage:
- Size: 97.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Togwin
Show / Hide certain window (application) by pressing an key.
## Installation
If you are using Ubuntu, use apt-get to install [xdotool][xdotool].
$ sudo apt-get install xdotool
Then, place `togwin` to certain directory in the `PATH`.
For example,
$ sudo mv togwin /usr/local/bin
## Usage
$ togwin
Usage: /usr/local/bin/togwin [--class CLASS] [--title|--name NAME] [--action ACTION]
Toggle focus status of certain window.
CLASS WM_CLASS of the window
NAME WM_NAME of the window
ACTION command which is executed when window is not found
Use 'xprop WM_CLASS WM_NAME' to investigate the conditionMake command by using `togwin`. Then, bind it to the certain key in your window manager e.g. `Compiz`, `Metacity`, `Awesome` and `xmonad`.
## Examples
### Gnome-Terminal
Save the following script as `toggle-gnome-terminal`.
#!/bin/sh
togwin --class gnome-terminal --action gnome-terminal### Gnome-Dictionary
Same as above.
#!/bin/sh
togwin --class gnome-dictionary --action gnome-dictionary## Investigating class and names of window
Use `xprop WM_CLASS WM_NAME` to investigate the value of `--class` and `--name`.
$ xprop WM_CLASS WM_NAME
[xdotool]: http://www.semicomplete.com/projects/xdotool/