i3 is a tiling window manager for X11.
For more information about i3, please see the project's website and online documentation.
For information about contributing to i3, please see CONTRIBUTING.md.
Package i3 provides a convenient interface to the i3 window manager
License: Other
i3 is a tiling window manager for X11.
For more information about i3, please see the project's website and online documentation.
For information about contributing to i3, please see CONTRIBUTING.md.
Currently the command i3-msg -t get_tree
provides the field scratchpad_state
that is useful in identifying windows that are currently shown but still considered to be in the scratchpad. This field is not present/unmarshalled into i3.Node.
I believe adding this line to the Node struct definition would suffice.
ScratchpadState string `json:"scratchpad_state"`
It looks like only https://github.com/i3/go-i3/blob/master/socket.go#L32 would need to be abstracted to an environment var with a sane default to i3 if you wanted to support swaywm.
More than happy to PR this if there is any interest.
I'm using this pkg for supporting both i3 and sway in my https://github.com/quite/i3gopher
I just found out that I'd need to get hold of the app_id
of a node, which is only available under sway (approx like the window instance in X11). I'm using this pkg because it is so good, and I did from the beginning only support i3. And thanks to #4 it just works out of the box with sway. Only now did I run into the missing app_id for i3gopher's exclude functionality.
Having read the #4 issue I'm thinking that you might be wary of making such a sway-specific addition to this pkg @stapelberg . What do you think? I have not come across the fork of this pkg that @dlasky mentioned, which blanked-renames it to go-sway. But I also think that is not such a great idea.
It would be nice if the api did not log the detection of the version Variant. Is there a need to communicate that this is unsupported?
I'm writing a small tool with I'd like to be usable both with i3 and sway. https://github.com/quite/i3gopher
Though the tool is supposed to be run in the background, this frequently logged string (on every messaged roundtripped!) will drown any other relevant logging (error or otherwise) that it does.
I see that we can't really return non-nil since that'd stop the variant from being accepted. What to do...
@dlasky what do you think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.