sway-easyfocus

A tool to help efficiently focus windows in Sway inspired by i3-easyfocus.

https://github.com/edzdez/sway-easyfocus/assets/31393290/b71b1875-6c8b-4891-803c-763b040a55ff

Usage

``` A tool to help efficiently focus windows in Sway inspired by i3-easyfocus

Usage: sway-easyfocus [OPTIONS]

Options: --window-background-color set the window background color [default: 1d1f21] --window-background-opacity set the window background opacity <0-1.0> [default: 0.2] --label-background-color set the label background color [default: 1d1f21] --label-background-opacity set the label background opacity <0-1.0> [default: 1] --font-family [default: monospace] --font-weight [default: bold] --label-padding-x [default: 4] --label-padding-y [default: 0] --label-margin-x [default: 4] --label-margin-y [default: 2] -h, --help Print help -V, --version Print version ```

Build

This program is written in Rust. The Rust compiler can be installed by following the instructions on the official download page.

You also need to have gtk and gtk-layer-shell installed.

```shell

Clone this repo

$ git clone https://github.com/edzdez/sway-easyfocus.git

Build with cargo

$ cargo build --release $ ./target/release/sway-easyfocus

Alternatively, build and run in one step

$ cargo run --release ```