node-i3 icon indicating copy to clipboard operation
node-i3 copied to clipboard

Add support for sway

Open Rotekoppen opened this issue 4 years ago • 0 comments

Sway is a wayland equivalent to i3.

I did it myself by adding

I3IpcClient.prototype.inputs = function(cb) {
	this.message(100, null, cb);
};

I3IpcClient.prototype.seats = function(cb) {
	this.message(101, null, cb);
};

to index.js

and changing var GET_SOCKET_PATH_CMD = 'i3 --get-socketpath';to var GET_SOCKET_PATH_CMD = 'sway --get-socketpath';

Rotekoppen avatar Jul 21 '21 18:07 Rotekoppen