Permalink
Commits on Jan 9, 2017
  1. Link to NixOS package

    lolilolicon committed Jan 9, 2017
    Thanks to @guyonvarch
    
    Updates #21
Commits on Oct 30, 2016
  1. Don't fail to print help

    lolilolicon committed Oct 30, 2016
    As described in 924e807, when DISPLAY is unset, ffcast will bail before
    option parsing. 924e807 therefore decided to always print help on this
    failure. 706f168 disagreed, and removed this behavior.
    
    Here we find a sensible middle ground, by following the convention that
    -h and --help should print help for a program.
  2. Minor cleanup

    lolilolicon committed Oct 30, 2016
Commits on Oct 21, 2016
  1. Give awk some love

    lolilolicon committed Oct 21, 2016
    Use a filter `maxmin` to combine rects.
    Removed: function get_max_offsets and get_min_offsets
  2. Assignment to integer variables... magic.

    lolilolicon committed Oct 21, 2016
    Commit a973e6f made this uglier...
    This works; not sure, but it works...
  3. Release 2.5.0

    lolilolicon committed Oct 21, 2016
  4. Release 2.4.9

    lolilolicon committed Oct 21, 2016
    Also, mention `ffcast help` in `ffcast -h` message.
  5. Use assignment instead of `let` for integer vars

    lolilolicon committed Oct 21, 2016
    Missed this one in commit f19f298.
  6. trim: Show me what you got.

    lolilolicon committed Oct 21, 2016
  7. Make less noise

    lolilolicon committed Oct 21, 2016
  8. trim: What 'pad'?

    lolilolicon committed Oct 21, 2016
  9. Minor cleanup

    lolilolicon committed Oct 21, 2016
Commits on Oct 16, 2016
  1. Link to openSUSE package.

    lolilolicon committed Oct 16, 2016
    Updates #21
Commits on Oct 15, 2016
  1. New sub-command 'abs'

    lolilolicon committed Oct 15, 2016
    Commit f19f298 made negative region sizes permissible. This commit
    introduces a method to get the "absolute region", simply by swapping the
    corners around.
    
    For example, to take a screenshot of a region at the center of the
    screen, with the clicked point as one of its corners:
    
        ffcast -s pad '0 X-x Y-y 0' abs png
  2. Don't limit region to screen area by default.

    lolilolicon committed Oct 15, 2016
    Previously, we always "sanitize" the offsets to make sure the region is
    on screen. This makes sense for commands such as 'png' and 'rec', but
    off screen geometry can be meaningful for windows (e.g. `sxiv -g`).
    
    For 'png' and 'rec', ensure_region_is_on_screen & verify_region_size.
    
    For the default command, verify_region_size so its output is a valid
    geospec, reusable as input for -g.
    
    We also give the root_* rect_* variables the integer attribute, to make
    assignments look cleaner.
    
    Removed: function set_region_vars_by_offsets
Commits on Oct 14, 2016
  1. New sub-command 'move'

    lolilolicon committed Oct 14, 2016
    `move w` is equivalent to `pad '0 w 0 -w'`, for convenience.
Commits on Oct 13, 2016
  1. Minor cleanup

    lolilolicon committed Oct 13, 2016
  2. Disable pathname expansion

    lolilolicon committed Oct 13, 2016
    Sometimes we don't surround parameters in double quotes, in order to
    utilize word splitting. A side effect of this is pathname expansion is
    also attempted. Disable pathname expansion as we don't need it anywhere.
  3. rec: don't set default -framerate

    lolilolicon committed Oct 13, 2016
    When no -m is given, don't apply crop filter.
    When no -r is given, don't give -framerate to ffmpeg.
    The ffmpeg default value of -framerate is 30000/1001.
    There is no reason for us to set this value to 25.
  4. pad: add short variables for geometry parameters

    lolilolicon committed Oct 13, 2016
    Commit dbc9caf aimed to enable arithmetic on the geometry parameters,
    by format string substitution, e.g.
    
        pad '10*%h/%w 10'
    
    What I didn't realize was that it was already possible to do arithmetic
    without that, e.g.
    
        pad '10*rect_h/rect_w 10'
    
    This commit facilitates such a command line by providing short variables
    for accessing these geometry parameters, e.g.
    
        pad '10*h/w 10'
    
    The mappings are as follows:
    
        root_w -> rw
        root_h -> rh
        rect_w -> w
        rect_h -> h
        rect_x -> x
        rect_y -> y
        rect_X -> X
        rect_Y -> Y
  5. Revert "pad: substitute format strings in $1"

    lolilolicon committed Oct 13, 2016
    This reverts commit dbc9caf.
    
    See next commit.
  6. pad: substitute format strings in $1

    lolilolicon committed Oct 13, 2016
    Enabled: arithmetics on the region geometry parameters, e.g.
    
        pad '-%h/2 -%w/2'
        pad '%h>200?10:5'
        pad '10*%h/%w 10'
    
    Adaptive. Dynamic. Dope.
Commits on Oct 12, 2016
  1. Minor cleanup

    lolilolicon committed Oct 12, 2016
  2. Don't print usage for not getting root window size

    lolilolicon committed Oct 12, 2016
    Too noisy and irrelevant. This is not a user error.
  3. Make invalid head, window or geospec an error

    lolilolicon committed Oct 12, 2016
    Previously, invalid window ID produces error, while invalid head ID or
    geospec gives warning. Fix this inconsistency.
  4. Handle xwininfo error better

    lolilolicon committed Oct 12, 2016
    Previously,
    
        $ ffcast -\# 999999
        X Error: 9: Bad Drawable: 0xf423f
          Request Major code: 14
          Request serial number: 3
        xwininfo: error: No such window with id 0xf423f.
        /usr/bin/ffcast: line 268: ref_windows["$ref_id"]: bad array subscript
    
    This commit eliminates the shell error.
  5. Catch xrectsel exit failure

    lolilolicon committed Oct 12, 2016
    When xrectsel fails to grab pointer, it's an error.
Commits on Oct 11, 2016
  1. Release 2.4.7

    lolilolicon committed Oct 11, 2016
  2. Allow region width & height to be zero

    lolilolicon committed Oct 11, 2016
    Enabled: select a region around a clicked point:
    
        ffcast -s pad 100
Commits on Oct 10, 2016
  1. Update submodule xrectsel

    lolilolicon committed Oct 10, 2016