Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cornerman/i3-easyfocus
Focus and select windows in i3
https://github.com/cornerman/i3-easyfocus
Last synced: 26 days ago
JSON representation
Focus and select windows in i3
- Host: GitHub
- URL: https://github.com/cornerman/i3-easyfocus
- Owner: cornerman
- License: gpl-3.0
- Created: 2015-05-30T10:19:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T16:03:55.000Z (over 1 year ago)
- Last Synced: 2024-08-01T15:34:10.132Z (3 months ago)
- Language: C
- Size: 69.3 KB
- Stars: 172
- Watchers: 14
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - cornerman/i3-easyfocus - Focus and select windows in i3 (C)
README
# i3-easyfocus
Focus and select windows in [i3](https://github.com/i3/i3).
Draws a small label ('a'-'z') on top of each visible container, which can be selected by pressing the corresponding key on the keyboard (cancel with ESC). By default, only windows on the current workspace are labelled.
## Usage
Focus the selected window:
```shell
./i3-easyfocus
```It also possible to only print out the con_id of the selected window and, for example, move it to workspace 3:
```shell
./i3-easyfocus -i | xargs -I {} i3-msg [con_id={}] move workspace 3
```Or to print the window id and use it with other commands, like xkill:
```shell
./i3-easyfocus -w | xargs xkill -id
```## Configuration
```
Usage: i3-easyfocus
-h --help show this message
-i --con-id print con id, does not change focus
-w --window-id print window id, does not change focus
-a --all label visible windows on all outputs
-c --current label visible windows within current container
-r --rapid rapid mode, keep on running until Escape is pressed
-m --modifier listen to keycombo + instead of only
- ctrl, shift, mod1, mod2, mod3, mod4, mod5
- or combine with, e.g., mod1+shift
-s --sort-by how to sort the workspaces' labels when using --all:
- based on their location (default)
- using the workspaces' numbers
-f --font set font name, see `xlsfonts` for available fonts
-k --keys set the labeling keys to use:
- prefers home row for qwerty (default)
- prefers home row for colemak
- orders alphabetically
--color-urgent-bg set label background color of urgent windows, e.g., FF00FF
--color-focused-bg set label background color of focused windows, e.g., FF00FF
--color-unfocused-bg set label background color of unfocused windows, e.g., FF00FF
--color-urgent-fg set label foreground color of urgent windows, e.g., FF00FF
--color-focused-fg set label foreground color of focused windows, e.g., FF00FF
--color-unfocused-fg set label foreground color of unfocused windows, e.g., FF00FF
```You can change the keybindings and the font in ```src/config.h```.
## Screenshot
![Screenshot](screenshot.png)
## Dependencies
* [i3ipc-glib](https://github.com/acrisci/i3ipc-glib) (>= 0.6.0)
* xcb and xcb-keysyms## Problems/Debugging
If there is a problem or you have an idea, please feel free to open a new issue.
In order to get more details about a problem you can build in debug mode, which will produce more log messages:
```
make clean debug
./i3-easyfocus
```