commit b7c3a07f6dbed8b5838b1533d28d1137a2540b28 parent cee595d5b4f16be325b25845a06763225edff37a Author: Alex Balgavy <alex@balgavy.eu> Date: Thu, 30 Sep 2021 00:37:22 +0200 drag/drop: scripts using dragon Diffstat:
A | scripts/drag | | | 6 | ++++++ |
A | scripts/drop | | | 5 | +++++ |
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/scripts/drag b/scripts/drag @@ -0,0 +1,6 @@ +#!/bin/sh +# This script uses `dragon` to provide drag-and-drop functionality. +# Provide one or more filenames, and you'll get a window from which you can +# drag. +command -v dragon-drag-and-drop || { printf "Install mwh/dragon\n" >&2 && exit 1; } +dragon-drag-and-drop "$@" diff --git a/scripts/drop b/scripts/drop @@ -0,0 +1,5 @@ +#!/bin/sh +# This script uses `dragon` to provide drag-and-drop functionality. +# It gives you a window in which you can drop items, printing them to stdout. +command -v dragon-drag-and-drop || { printf "Install mwh/dragon\n" >&2 && exit 1; } +dragon-drag-and-drop --target