sweet

command module
v0.0.0-...-6a41ba6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

README

Sweet

A sway-to-i3 IPC compatibility layer.

go get -u snai.pe/sweet

Why

Sway provides a value for I3SOCK, but the json output it sends can vary slightly from stock i3. This sometimes break programs consuming this API, because they expect some fields to be always present, even if they don't quite make sense in a pure wayland sense.

Sweet solves this problem by creating an IPC socket at $SWAYSOCK.i3, which tries to mimic as much as it can i3's output.

Usage

The simplest way to set up sweet is to add to your sway config:

exec sweet

and then set I3SOCK="$SWAYSOCK.i3" in your environment.

Changes

  • The class and the instance of a wayland window will always be the app ID of the view.
  • The app_id field is removed from view objects
  • View objects of wayland windows provide the window_properties map.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL