Mikkel Oscar Lyderik
c97555d9f0
swaygrab: add default output filename.
...
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.
9 years ago
Mikkel Oscar Lyderik
d49282b2c3
swaygrab: make focused output default
...
This makes swaygrab use the currently focused output as source if no
other output is defined with the `-o, --output <output>` option.
9 years ago
Mikkel Oscar Lyderik
45b959f601
Move numlen(1) to sway/util.c
9 years ago
Christoph Gysin
923c3245ac
Fix option parsing
...
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'.
9 years ago
Christoph Gysin
12c8cf5bf6
swaygrab: Add --help option that prints usage
9 years ago
Christoph Gysin
b235ccd212
swaygrab: Print usage and exit on unknown options
9 years ago
Christoph Gysin
3ba33321de
Use macros for exit values
9 years ago
Drew DeVault
4916e30378
Remove extraneous logging from swaygrab
9 years ago
Drew DeVault
e0cb8284fb
Rearrange logging headers
...
Ref #270
9 years ago
Drew DeVault
0bb872ab70
Fix uninitialized variable warning in swaygrab
9 years ago
Drew DeVault
2ef7cf9e97
Add ffmpeg capture to swaygrab (with limitations)
...
This needs to be multithreaded to have any sort of realistic expectation
of performance, due to issues with syncronous I/O.
9 years ago
Drew DeVault
04bd9386fe
Fix swaygrab memory leak
9 years ago
Drew DeVault
f05b6cd55c
Implement swaygrab for still images
9 years ago
Drew DeVault
062c74b7d0
Add command line to swaygrab
...
Also modifies IPC client so that we can work with persistent
connections.
9 years ago
Drew DeVault
7c04cd4fc8
Add swaygrab subproject
9 years ago