pttsbinet.org/x/ptt/cmd/sway-exec

sway-exec command

Command sway-exec starts a given command in the background and waits for its window to appear.

sway-exec - execute a command and waits for its window to appear.

Usage: sway-exec [options] command [args...]

ex:
 $> sway-exec foot -D /some/path
 $> sway-exec -w foot -t 10s foot
 $> sway-exec -- foot -D /some/path
 $> sway-exec -c 0.1s -t 10s firefox

options:
  -c duration
    	cooldown time that sway-exec will wait after having seen the window (useful for applications that create multiple windows)
  -t duration
    	timeout for executing command (default 30s)
  -w string
    	name of the command to waitfor
Version
v0.0.0-20250303145539-212a2a8f82e2 (latest)
Published
Mar 3, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
5 days ago

Tools for package owners.