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
99af7e7c9c
move manpages to subfolders
9 years ago
Christoph Gysin
cce9c338c0
cmake: build common code only once
...
This creates (static) libraries for protocols/, common/, and wayland/.
9 years ago
Christoph Gysin
c9ce15aa18
cmake: remove subprojects
9 years ago
Christoph Gysin
2dedf206d7
cmake: use out-of-source build
9 years ago
Christoph Gysin
f7ec3d00a0
cmake: use tabs instead of spaces
9 years ago
Christoph Gysin
905966bcae
cmake: style consistency
9 years ago
Christoph Gysin
2429266e3e
cmake: convert all cmake commands to lowercase
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