screenshot / video capture tool based on scrot and recordmydesktop
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSING
Makefile
README.md
shot.sh

README.md

shot - screenshot / video capture tool based on scrot and recordmydesktop

  • Short commands, easily bindable to key shortcuts
  • Same commands to do both screenshot and videoshot
  • Nice date in shot title by default (20131212_032511)
  • No question mode (-q) = quick screenshots
  • -c copies path of shot to clipboard
  • -e executes command (%f will be the shot path)

Examples that you can bind to key shortcuts

# Capture shot focused window, and copy shot path to clipboard
shot -c
# Capture shot whole screen
shot -w
# Record video focused window, and copy shot path to clipboard
shot -c -r
# Record video whole screen
shot -r -w
# Capture shot focused window, but unnamed
shot -q
# Browse shots directory
shot -b
# Take a screenshot of focused window, upload it your website and copy URL to clipboard
shot -e 'xterm -e "scp %f _myserver:www/; echo 'http://myserver.fr/%n'; echo 'http://myserver.fr/%n' |xclip -selection clipboard; read a"'
# Take a video shot of focused window, upload it your website and copy URL to clipboard
shot -r -e 'xterm -e "scp %f _myserver:www/; echo 'http://myserver.fr/%n'; echo 'http://myserver.fr/%n' |xclip -selection clipboard; read a"'

Synopsis

shot [-hbBrRswqce] [name]
    -b   : browse shots directory (/home/laurent/shots)
    -B   : open last shot with shutter
    -r   : video instead of screenshot
    -R   : video (with sound) instead of screenshot
    -s   : select manualy window instead of focused window
    -w   : whole screen instead of focused window
    -q   : do not ask filename
    -c   : copy shot path to clipboard
    -e   : execute command (%f=shot_path, %n=filename, %d=shot_date, %i=infos)
    name : optional, prepended to filename after date
           if not specified, will be asked using Zenity if -q not specified

By default it creates files like 20131211_153611_nameyouentered.png

Dependencies

On Ubuntu, just run sudo make linux-dependencies

Dependencies:

  • scrot
  • xclip
  • zenity

Additional dependencies for videoshot:

  • recordmydesktop
  • xwininfo (in x11-utils in Ubuntu)
  • xdotool

Additional dependencies for opening shots:

  • shutter