This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello! I've just made a command line utility I called wlrctl. There's an AUR package for it here (or build from source with meson/ninja) if you'd like to try it out.
You can use it to...
- control windows, e.g.
wlrctl window focus firefox
- control the mouse, e.g.
wlrctl pointer click left
- type on the keyboard, e.g.
wlrctl keyboard type Hello!
.
Basically, desktop type stuff. It won't ever have as many features as swaymsg
, but it uses Wayland to communicate instead of the sway ipc so it could potentially work on other compositors if they support the necessary protocols.
The idea was to use miscellaneous wlroots extensions and see if they could come together to make a useful command utility. There are more features I'd like to add, like maybe a mode to record and replay actions (keystrokes/mouse movements etc.) as macros but it's only got the absolute basics right now.
These protocols are sparsely used atm, so I ran into a couple of bugs that can fatally crash your sway session while building this. If you want to try it out you should also use a recently built sway from master (1.5 is too old). If you are still able to crash a recent version of sway using this tool, you should file a sway bug report.
Let me know what you think!
EDIT: Just to reiterate, DONT try this on old versions of sway. It definitely doesn't work, and will probably break things.
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/swaywm/comm...