Giter Site home page Giter Site logo

dragon's Introduction

dragon - simple drag-and-drop source/sink for X or Wayland

Many programs, particularly web applications, expect files to be dragged into them now. If you don't habitually use a file manager that is a problem. dragon is a lightweight drag-and-drop source for X where you can run: dragon file.tar.gz to get a window with just that file in it, ready to be dragged where you need it.

What if you need to drag into something? Using: dragon --target you get a window you can drag files and text into. Dropped items are printed to standard output.

If you're only dealing with a single file, either source or sink, use the --and-exit option to terminate as soon as one drag-and-drop operation is complete.

If you want to keep the files you drag in around for a while, use: dragon --target --keep and each file you drop becomes its own draggable button, which you can drag elsewhere later.

Installing

Just run make to compile dragon and get an executable you can run immediately or put where you like.

To install, run make install, which will put it into ~/.local/bin by default. If you want a different destination, run make PREFIX=/path/here install instead. To choose a different executable name, run make NAME=dragon-drop install, which will generate the executable and man page to match the given name.

dragon requires GTK+ 3 and is distributed under the GNU GPL version 3.

dragon's People

Contributors

toluschr avatar mwh avatar fichtefoll avatar sketch98 avatar n-r-k avatar giof avatar andrembpontes avatar bgstack15 avatar eigengrau avatar amarakon avatar toniz4 avatar

Stargazers

Ryan Young avatar Gun avatar

Forkers

linusgang

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.