From e44fe862f0bedc658aabd1daafb16376f188857e Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 5 Feb 2023 03:37:49 +0100 Subject: xwaitforwindow: RIP --- krebs/5pkgs/simple/xwaitforwindow.nix | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 krebs/5pkgs/simple/xwaitforwindow.nix diff --git a/krebs/5pkgs/simple/xwaitforwindow.nix b/krebs/5pkgs/simple/xwaitforwindow.nix deleted file mode 100644 index 41ce65022..000000000 --- a/krebs/5pkgs/simple/xwaitforwindow.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ writeDashBin, xdotool, xorg }: -writeDashBin "xwaitforwindow" '' - # usage: xwaitforwindow ARGS - # see xdotool search for possible ARGS - # example: xwaitforwindow -name WINDOWNAME - set -efu - - if id=$(${xdotool}/bin/xdotool search "$@"); then - printf 'waiting for window %#x\n' "$id" >&2 - exec ${xorg.xprop}/bin/xprop -spy -id "$id" >/dev/null - else - printf 'no window found with xdotool search %s\n' "$*" >&2 - exit 1 - fi -'' -- cgit v1.2.3