dotfiles/.config/scripts/sway/wayland-run-on-new-display
2024-05-16 00:07:04 +08:00
..
COPYING Added source for wayland-run-on-new-display. 2022-06-26 07:42:09 +08:00
main.c Added source for wayland-run-on-new-display. 2022-06-26 07:42:09 +08:00
Makefile Added source for wayland-run-on-new-display. 2022-06-26 07:42:09 +08:00
README.md Added source for wayland-run-on-new-display. 2022-06-26 07:42:09 +08:00
wayland-run-on-new-display Add untracked scripts, links and files used by scripts 2024-05-16 00:07:04 +08:00

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.