This tool that allows you to rapidly choose a specific window directly without having to use the mouse or directional keyboard navigation.
Thanks to cairo, it should work on all kinds of screens and automatically display at the correct size according to your DPI.
On Arch Linux: pacman -S wmfocus
With Cargo: cargo install --features i3 wmfocus
Draw labels on the upper-left corner of all windows:
wmfocus
Completely fill out windows and draw the label in the middle (try it with transparency!):
wmfocus --fill
Use a different font (as provided by fontconfig):
wmfocus -f "Droid Sans":100
Change up the default colors:
wmfocus --textcolor red --textcoloralt "#eeeeee" --bgcolor "rgba(50, 50, 200, 0.5)"
wmfocus will make use of a compositor to get real transparency.
``` wmfocus 1.3.0
Sven-Hendrik Haase svenstaro@gmail.com
Visually focus windows by label
USAGE: wmfocus [OPTIONS]
OPTIONS:
--textcolor
If there's some funky stuff, you can try to track it down by running wmfocus
with RUST_LOG=trace
:
RUST_LOG=trace wmfocus
This will print quite some useful debugging info.
You need to have recent versions of rust
, cargo
, xcb-util-keysyms
, libxkbcommon-x11
and cairo
installed.
Then, just clone it like usual and cargo run
to get output:
git clone https://github.com/svenstaro/wmfocus.git
cd wmfocus
cargo run --features i3
While this tool is window manager-independent, an implementation for your favorite window manager might not yet be available. Current support:
If you want to implement support for more window managers, have a look at the i3 implementation.
This tool is heavily inspired by i3-easyfocus.
This is mostly a note for me on how to release this thing:
cargo release --dry-run
cargo release