dotfiles/.config/scripts/sway/wayland-run-on-new-display/README.md
Sheldon Lee ed1d0db617 Added source for wayland-run-on-new-display.
This program runs a given command whenever a new display is connected on
wayland.
2022-06-26 07:42:09 +08:00

405 B

wayland-run-on-new-display

Run a command every time a new display is attached.

Building

You must have wayland client libraries installed on your system.

Build by running make

Place the produced binary somewhere on your $PATH.

Running

wayland-run-on-new-display some-command args-for-command

The program will block until a new display is attached, and then run the specified command.