Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fd0/swytch

Window selection for Sway with rofi
https://github.com/fd0/swytch

Last synced: about 1 month ago
JSON representation

Window selection for Sway with rofi

Awesome Lists containing this project

README

        

# Introduction

This program is a replacement for the window selection built into rofi, which
does not work with Sway. It extracts the windows via `swaymsg` instead of
querying the X server.

It is inspired by [`swytch.sh`](https://github.com/wilecoyote2015/Swytch),
but implemented in Go instead of Shell for speed.

## Building

Install Go, then run `go build`.

## Keybindings

* `Return` switches focus to the window
* `Shift+Return` moves the window to the current workspace
* `Control+C` kill the window

# Dependency

It includes a fork of the library `i3ipc-go` from [here](https://github.com/emcconville/i3ipc-go)
(branch `sway_support`) for Sway support (at least until
https://github.com/mdirkse/i3ipc-go/pull/9 is merged). Additionally, we've
added the `app_id` field used for native Wayland windows.