diff --git a/examples/dragger/README.md b/examples/dragger/README.md deleted file mode 100644 index c6106aa..0000000 --- a/examples/dragger/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# `dragger` - -Simple window dragging window that listens for commands on a FIFO. - -Commands that you can send to it: - -* `drag` - call `xmmv` on the currently focused window, making it follow the -pointer -* `resize` - call `xmrs` on the currently focused window, making it resize -according to the pointer -* `close` - kill `xmmv` or `xmrs` -* `quit` - quit the program diff --git a/examples/dragger/dragger b/examples/dragger/dragger deleted file mode 100755 index 76de1d8..0000000 --- a/examples/dragger/dragger +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# -# dragger - A window dragging and resizing daemon -# Copyright (c) Tudor Ioan Roman - WTFPL -# - -DRAGGER_FIFO="${DRAGGER_FIFO:-/tmp/dragger.fifo}" - -test -e "$DRAGGER_FIFO" && rm "$DRAGGER_FIFO" -mkfifo "$DRAGGER_FIFO" - -pid="0" -quit="0" -while [ "$quit" -eq 0 ]; do - command="$(cat "$DRAGGER_FIFO")" - case "$command" in - drag) - kill -0 "$pid" > /dev/null 2>&1 || pid="0" - (! pfw > /dev/null 2>&1 || [ "$pid" -ne 0 ]) && continue - xmmv & - pid="$!" - ;; - - resize) - kill -0 "$pid" > /dev/null 2>&1 || pid="0" - (! pfw > /dev/null 2>&1 || [ "$pid" -ne 0 ]) && continue - xmrs & - pid="$!" - ;; - - close) - [ "$pid" -eq 0 ] && continue - kill "$pid" - ;; - - quit) - quit="1" - ;; - esac - -done diff --git a/examples/dragger/sxhkdrc b/examples/dragger/sxhkdrc deleted file mode 100644 index c374d30..0000000 --- a/examples/dragger/sxhkdrc +++ /dev/null @@ -1,6 +0,0 @@ -super + ~button1 - echo drag > /tmp/dragger.fifo - -~button1 - echo close > /tmp/dragger.fifo; \ - waitron window_focus $(xqp)