Hummer12007
24cc12e043
Added -R option to getopt opt_string
9 years ago
Dominique Martinet
234932723c
CMake: add missing wlc include dir for common and swaygrab
9 years ago
Mikkel Oscar Lyderik
5e253fdd9a
Correctly exit sway on errors.
...
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.
9 years ago
Mikkel Oscar Lyderik
2707be7199
use log10 in numlen
9 years ago
Drew DeVault
a416715372
Revert "s/numlen/log10/g"
...
This reverts commit 038bb8cc7c
.
9 years ago
Drew DeVault
038bb8cc7c
s/numlen/log10/g
9 years ago
Mikkel Oscar Lyderik
e0ba689dba
Copy filename from argv
...
Fix #449
9 years ago
Mikkel Oscar Lyderik
364e37a1eb
Fix whitespace issues.
9 years ago
Julien Savard
7b00eab8ad
swaygrab: Fix memory leak when recording videos
9 years ago
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
64ccd63f13
swaygrab: update man page
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
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