Giter Site home page Giter Site logo

toqozz / slip Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 5.0 21.5 MB

Select and upload screenshots, gifs, and screencasts to imgur and gfycat with help of slop.

License: GNU General Public License v3.0

Shell 100.00%
ffmpeg gfycat gif imgur linux screencast screenshot slip video

slip's People

Contributors

toqozz avatar zaedus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

slip's Issues

No way to pass font name with space in DMENU_CMD

I'm trying to set font for the menu but seems there's no way to set font with spaces?

DMENU_CMD="dmenu -f -p slip -fn 'BigBlue_TerminalPlus Nerd Font-16:regular' -i -y 520 -x 192 -w 1536 -h 40 -nb #444B6A -sb #444B6A -nf #F7768E -sf #E0AF68"

Can't record

Hello, thank you for the utility, it's very useful and quick, but even though I can take screenshots with slip --screnshot or -s, recording is not working for me.

Here's the error (output):

/usr/bin/slip: line 146: kill: (13021) - No such process

I've copied the (example) config file directly from here (GitHub), and created the vid and img directories in my home folder.

I've also noticed that it does create /tmp/slip_record.pid file with a numeric value.

I remove that file myself to stop slip. I use it over roti.

I also have ffmeg installed along with maim and slop.

PS

Seeing copying the link to primary selection (instead of clipboard) option commented in the file and uncommenting it was what I first decided to edit /usr/bin/slip for :)

Give a config option to allow users to upload to their own imgur account.

Check out how https://github.com/jomo/imgur-screenshot does their configs to allow people to upload images anonymously, or optionally allow them to upload to their personal imgur account.

My hope is to pretty much replicate their script but with gifs, and slip is SOO close! Essentially I want a script that I hit a hotkey, select the area, or click on a window, and it records a gif of that selection or window. It should stop on the next keyboard or mouse input and automatically upload the gif, either to gifycat or imgur, and return the link, copying it to the clipboard. If the gif is too large, it should say so and offer to open the location in the user's file manager.

Allow slip --stop

It is sorta useless to have a gif recorder if the end of the gif recording you see running slip again and manually selecting stop. Please allow the command slip --stop to stop recording and save the file, without asking if it should be deleted.

edit looking through the code I see slip -q will stop recording. Please either put this in the readme, along with the rest of the options you omitted or at least make slip --stop synonymous with slip -q. One should not have to dig into the code to find simple functions like these that should be documented in the readme on github.

As it is a script I did not expect --help to work, which such a feature should also be listed on the github readme.

gfycat upload doesn't work

It seems the gfycat api isn't being used right, I get the URLs but they always have no content, even after a very long time.

Please add a submenu for imgur upload

Would be great if I could use slip for everything, including

  • Taking a screenshot without uploading it to imgur
  • Taking a video and uploading it to imgur

Instead of showing a notification on completion, can you display the rofi menu to answer the question "Do you want to upload to imgur?" ?

To upload videos, we can convert them into gif images:

$ mplayer -ao null vid-2017-05-29-155452.mkv -vo jpeg:outdir=vid-2017-05-29-155452/
$ ffmpeg -i vid-2017-05-29-155452/00000%03d.jpg vid-2017-05-29-155452.gif
$ imgur.sh vid-2017-05-29-155452.gif

Thanks for considering this feature

EDIT: forgot about imgur's nginx filesize limitation. Might be worth considering another hosting service for videos.

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.