aboutsummaryrefslogtreecommitdiff
path: root/swaygrab
AgeCommit message (Collapse)Author
2017-12-01remove the rest of cmakeTony Crisci
2017-10-22swaygrab: Add some error handling.Geoff Greer
- If IPC response contains `success: false`, abort and print error message. - If tree has no nodes, abort with error msg instead of segfaulting.
2017-10-22swaygrab: Increase max depth of JSON parsing to 256. Prevent segfault if IPC ↵Geoff Greer
response can't be parsed. The default max nesting depth of json-c is 32, which can cause some valid trees to fail to be parsed, so increase that. Also instead of segfaulting, just abort and print the error returned by json-c.
2017-10-06Fix github links in docZuzana Svetlikova
2017-09-11fixes a hanging swaygrabMarkus Ongyerth
https://github.com/SirCmpwn/sway/issues/1350 is fixed with this. The commit that change swaygrab to use fork instead of Popen tried to write to the read end of the pipe in the child branch and exec in the parent branch. This commit fixes both of those and closes the write fd after writing, so convert actually exits.
2017-08-27Use fork in swaygrab instead of popen.Clar Charr
2017-07-04Make asciidoc (and man pages) optionalDrew DeVault
And remove it from the build
2017-06-17FFmpeg options for swaygrabDavid Blajda
2017-06-06FreeBSD fixesjohalun
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-04-26Add -DVERSION flag for release version numbersSebastian Noack
2017-03-10UnGNUify the codebaseDrew DeVault
2017-02-13Document swaygrab -fHummer12007
2016-09-18implement "focused container" feature for swaygrabZandr Martin
2016-04-28Fix missing include pathsTomáš Čech
When headers were installed in more sofisticated places (but package config knows it right), it revealed missing paths in CMake configuration. Lets fix it.
2016-03-29Fix a typo in swaygrab manualHummer12007
2016-03-28Added -R option to getopt opt_stringHummer12007
2016-03-24CMake: add missing wlc include dir for common and swaygrabDominique Martinet
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-01-24use log10 in numlenMikkel Oscar Lyderik
2016-01-23Revert "s/numlen/log10/g"Drew DeVault
This reverts commit 038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.
2016-01-23s/numlen/log10/gDrew DeVault
2016-01-17Copy filename from argvMikkel Oscar Lyderik
Fix #449
2016-01-05Fix whitespace issues.Mikkel Oscar Lyderik
2015-12-22swaygrab: Fix memory leak when recording videosJulien Savard
2015-12-17swaygrab: add default output filename.Mikkel Oscar Lyderik
With this it's possible to run `swaygrab` without a filename argument. With no filename supplied it will use a default name based on the current time. The default file will get the extension `png` for screenshots and `webm` for video capture.
2015-12-17swaygrab: update man pageMikkel Oscar Lyderik
2015-12-17swaygrab: make focused output defaultMikkel Oscar Lyderik
This makes swaygrab use the currently focused output as source if no other output is defined with the `-o, --output <output>` option.
2015-12-14Move numlen(1) to sway/util.cMikkel Oscar Lyderik
2015-12-02move manpages to subfoldersChristoph Gysin
2015-12-02cmake: build common code only onceChristoph Gysin
This creates (static) libraries for protocols/, common/, and wayland/.
2015-12-01cmake: remove subprojectsChristoph Gysin
2015-12-01cmake: use out-of-source buildChristoph Gysin
2015-12-01cmake: use tabs instead of spacesChristoph Gysin
2015-12-01cmake: style consistencyChristoph Gysin
2015-12-01cmake: convert all cmake commands to lowercaseChristoph Gysin
2015-11-28Fix option parsingChristoph Gysin
Using 'flag' results in duplicate code paths for short and long options. This broke the -q short option in swaymsg, because there was: {"quiet", no_argument, &quiet, 'q'} Which will set quiet to 'q' and return 0, not 'q'.
2015-11-28swaygrab: Add --help option that prints usageChristoph Gysin
2015-11-28swaygrab: Print usage and exit on unknown optionsChristoph Gysin
2015-11-28Use macros for exit valuesChristoph Gysin
2015-11-28Remove extraneous logging from swaygrabDrew DeVault
2015-11-28Rearrange logging headersDrew DeVault
Ref #270
2015-11-27Fix uninitialized variable warning in swaygrabDrew DeVault
2015-11-27Add ffmpeg capture to swaygrab (with limitations)Drew DeVault
This needs to be multithreaded to have any sort of realistic expectation of performance, due to issues with syncronous I/O.
2015-11-27Fix swaygrab memory leakDrew DeVault
2015-11-27Implement swaygrab for still imagesDrew DeVault
2015-11-27Add command line to swaygrabDrew DeVault
Also modifies IPC client so that we can work with persistent connections.
2015-11-27Add swaygrab subprojectDrew DeVault