Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

51
wlrctl - a concept for desktop automation
Post Body

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.

Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
13,089
Link Karma
584
Comment Karma
12,213
Profile updated: 1 week ago
Posts updated: 9 months ago
:sway: brocellous

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago