aboutsummaryrefslogtreecommitdiff
path: root/swaygrab/main.c
AgeCommit message (Collapse)Author
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: 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-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