crondog
cd0eaf00da
Prevent ipc from crashing sway
9 years ago
Cole Mickens
28081b7689
libinput
9 years ago
Mikkel Oscar Lyderik
2e0ef533f2
Init layout before checking config
9 years ago
Mikkel Oscar Lyderik
16b8c2e915
Handle SIGTERM sent to sway
...
This makes sway handle and gracefully shut down everything when
receiving a SIGTERM.
Fix #416
9 years ago
Streetwalrus Einstein
774ffbe0d5
Detect proprietary AMD drivers too
9 years ago
Drew DeVault
af80b12add
Implement invoking `sway` as IPC client
...
As an alternative to invoking swaymsg.
9 years ago
Drew DeVault
25ad3181f5
Merge pull request #276 from sce/earlier_logging
...
main: Setup logging before wlc_init.
9 years ago
S. Christoffer Eliesen
c26a4b42cf
main: Setup logging before wlc_init.
...
If `wlc_init` fails the error message will never be logged or printed
anywhere.
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
2f2e1f3fc7
sway: Add --help option that prints usage
9 years ago
Christoph Gysin
e48a16ce5e
sway: Print usage and exit on unknown options
9 years ago
Christoph Gysin
3ba33321de
Use macros for exit values
9 years ago
S. Christoffer Eliesen
20cb390323
sway/main: Move wlc init to after args are handled.
...
First of all because it's not needed that early, and second of all
because there's a bug where calling `sway --get-socketpath` via `popen`
causes the child sway process to spin/hang instead of returning EOF.
(Specifically `(unset SWAYSOCK; swaymsg)` hangs.) This patch fixes that.
(Also note that this patch moves the "detailed review" comment, so I
guess this patch requires extra detailed review?)
9 years ago
Drew DeVault
27f03c705d
Move IPC client into common, refactor IPC
9 years ago
Drew DeVault
82db2a57a9
Basic support for extensions in server and clients
9 years ago
S. Christoffer Eliesen
f64b7e71d4
ipc: Store socketname in SWAYSOCK. Fixes `--get-socketpath`.
...
After adding pid to the socket path the `--get-socketpath` command broke
because it doesn't know the pid of the running instance. Fix this by
setting and querying `SWAYSOCK`.
Also ignore `SWAYSOCK` upon normal startup if a socket exists at that
location (ie. from another sway instance), and don't overwrite `I3SOCK`
if it exists either.
9 years ago
S. Christoffer Eliesen
3be11a08e6
main: Implement --get-socketpath switch.
9 years ago
taiyu
18f4905e62
#187 , let init handle child processes
9 years ago
Drew DeVault
5bcecbb751
Revert "#187 cleanup zombies properly"
9 years ago
taiyu
5539fd89be
#187 cleanup zombies properly using default
9 years ago
Drew DeVault
318e1be240
Fix warnings introduced by prior commit
9 years ago
Drew DeVault
8e25ce4e57
Fix build for debian stretch
...
Fixes #182
9 years ago
Drew DeVault
1756a4f2da
fclose /proc/modules when we're done with it
9 years ago
Drew DeVault
4ef60e7c09
Add check for nvidia module and warn user
9 years ago
Drew DeVault
eb003689a3
Log sway version on startup
9 years ago
Luminarys
42de135c3a
Added in better versioning info
9 years ago
taiyu
1fa7a91bfb
move_container_to fixup
9 years ago
Luminarys
38cfdf99f4
Added in build version based on git hash
9 years ago
taiyu
e121258426
longopt minor fix
9 years ago
Drew DeVault
e78221e6a0
Prefix log events from wlc with [wlc]
9 years ago
Drew DeVault
ac2034df99
Handle wlc log events
9 years ago
Drew DeVault
2a799a731f
Remove wlc logging stuff
9 years ago
minus
f26ed32e46
added sway_terminate to exit cleanly
9 years ago
minus
91c0877264
properly exit sway
...
- wlc_terminate() instead of exit(0)
- unlink IPC socket
9 years ago
minus
8981b48cd2
very basic IPC implementation
...
simply executes the received data as command
9 years ago
Drew DeVault
579fe70ed9
Add command line parsing
...
Closes #6
9 years ago
Drew DeVault
3f3d1ffee4
Rearrange main.c some more
10 years ago
Luminarys
7427ce8930
Switched config loading order to prevent root access w/wlc
10 years ago
Drew DeVault
a092df52da
Remove WLC_IDLE_TIME environment variable
10 years ago
Drew DeVault
6e8280e7fd
Config errors should not be fatal
10 years ago
Drew DeVault
0ed6501aa4
Set WLC_IDLE_TIME to 0
10 years ago
Luminarys
ea9efc884d
Allowed for execd commands to be spawned after abort
10 years ago
Luminarys
2c9f5eca89
Fixes to workspace generation
10 years ago
Taiyu
5df5b00989
moved signal handling to main
10 years ago
Taiyu
0f387483fd
moving stuff around
10 years ago
Luminarys
a5b02791d4
Changed command handler to perform var subs on all cmd args
...
Fixed workspace_next_name to use the first workspace name it can find in the config
Minor fixes
Changed command handler to perform var subs on all portions of a command
Revert "Changed command handler to perform var subs on all portions of a command"
This reverts commit fcfcffa1ea9819bcada6e6c85b40b21bf1b3a96e.
Var sub fixes
Minor fixes
More minor fixes
10 years ago
Drew DeVault
96d7ff1e19
Slightly better multihead support
10 years ago
Drew DeVault
54374d81b5
Fix some errors with config loading
10 years ago
Luminarys
508980e3ab
Abstracted load_config
10 years ago
Luminarys
c0ee2a6406
Added in reload and exec_always handling
10 years ago