S. Christoffer Eliesen
865b30f138
container: Move container_under_pointer here from handlers.
9 years ago
Drew DeVault
6cd106d23c
Merge pull request #208 from minus7/ipc_subscribe
...
implemented IPC subscribe for workspace event
9 years ago
minus
9925554ea4
implemented IPC subscribe for workspace event
9 years ago
S. Christoffer Eliesen
9f02b0bf16
commands: Learn 'debuglog'.
...
Replicates i3 option. Verbosity level given as command line argument
becomes default log level, and using 'debuglog toggle' switches back and
forth between default and debug (or L_ERROR and debug if default is also
L_DEBUG).
9 years ago
S. Christoffer Eliesen
5a70853253
log: Add swayc_log, use at a few key places.
...
swayc_log works just like sway_log, but appends type and name from given
container to the log output.
9 years ago
S. Christoffer Eliesen
c6bb23b7dd
sway/output: Create, move code from handlers.c here.
9 years ago
S. Christoffer Eliesen
c1479701de
seamless_mouse: Move pointer only if successfully changed workspace.
...
If e.g. a window has a popup open then that will lock the current focus,
making a workspace switch denied.
So don't move the mouse pointer in such cases.
9 years ago
S. Christoffer Eliesen
362413bd50
commands: cmd_results->input is duplicated/freed.
9 years ago
S. Christoffer Eliesen
af30a1b67c
ipc,commands,config: Replace cmd_status enum with cmd_results struct.
...
In i3 the ipc reply will contain a human readable error message, and
this patch replicates that behaviour.
However, that error message is also useful for logging, which this
patch takes advantage of.
E.g. instead of logging errors directly in commands.c/checkargs, it is
fed back to the caller which eventually ends up logging everything with
maximum context available (config.c/read_config).
So instead of logging e.g. "Error on line 'exit'" it will now log:
"Error on line 'exit': Can't execute from config."
9 years ago
S. Christoffer Eliesen
edf33aad29
config: Add "seamless_mouse" to decide if pointer crosses output edges.
9 years ago
S. Christoffer Eliesen
ca862a5bd4
config: Apply output config also during config reload.
9 years ago
S. Christoffer Eliesen
3be11a08e6
main: Implement --get-socketpath switch.
9 years ago
taiyu
0d51f62224
merge + no c_extensions
9 years ago
Drew DeVault
318e1be240
Fix warnings introduced by prior commit
9 years ago
taiyu
0bea2e2122
multi command keybinds
9 years ago
Drew DeVault
e505abfe75
Revert "new_workspace null behavior + testmap functions + regex"
...
This reverts commit e1d18e42a8
.
Fixes #180
cc @taiyu-len
9 years ago
taiyu
f76f9e2eea
visible values
9 years ago
taiyu
e1d18e42a8
new_workspace null behavior + testmap functions + regex
9 years ago
taiyu
aaa0923bc4
cmd status + workspace ws output op
9 years ago
taiyu
6388241abb
mode supports multi token names
9 years ago
taiyu
aa22dc3113
var replacement changes
9 years ago
taiyu
d673a72705
set variable changes
9 years ago
taiyu
71af5b7dde
config modes
9 years ago
taiyu
f25c6b312b
gap resize
9 years ago
taiyu
2ef83664f5
remove outdated comment
9 years ago
taiyu
afa6747145
enum for command type
9 years ago
taiyu
4cd18449d2
better handling of commands during config
9 years ago
taiyu
dbeca88dee
default gap value
9 years ago
Luminarys
12e96f0f9e
Added in workspace_auto_back_and_forth
9 years ago
Luminarys
fe2ec8a676
Added in workspace back_and_forth
9 years ago
Luminarys
28e937020a
Made scratchpad handling identical to i3
9 years ago
Luminarys
7eefecf479
Added in scratchpad adding
9 years ago
taiyu
1820b3f0bb
move function redone
9 years ago
taiyu
5678d824e4
update visibility + container info functions
9 years ago
taiyu
da79bd65de
use previous outputs
9 years ago
Luminarys
acb3fbdfb5
Added in default_orientation handling
9 years ago
taiyu
357af228d6
some function documentation, fixed gaps on config reload
9 years ago
taiyu
1fa7a91bfb
move_container_to fixup
9 years ago
taiyu
225c2fbe5b
fixed segfault on exit + a little fixup of that floatfocus pr
9 years ago
minus
ca89ba83a8
changed view visibility to be bool
...
view_visibility enum remains with one constant that is the mask to wlc's view masking
9 years ago
minus
e533014201
added missing util.h/c stuff
9 years ago
minus
e854a54e96
changed workspace_{outout_,}{next,prev} to return workspace
...
so it can be reused for "move container to workspace next"
9 years ago
minus
03e4a97dbe
added "move container to workspace"
...
makes the previous commit actually testable
9 years ago
minus
f22c937953
refactored view visibility
...
- replace visibilty mask integers with an enum
- set output's visibilty mask on creation
- added update_visibility to manually update a containers visibility (e.g. when it moved to an invisible workspace)
9 years ago
minus
1efda79bf2
refactored workspace_next/prev
9 years ago
Luminarys
7c5b6f8c52
Added in backtrace printing
9 years ago
taiyu
dbad30a409
add limit to swayc_in_direction
9 years ago
taiyu
c8415d7fef
split_string memory leaks cleanedup
9 years ago
taiyu
51ab3c9180
merge
9 years ago
Drew DeVault
1ac0c8cd47
Refactor keyboard to consider modified keysyms
...
Press Shift
Press 0 # Reads as ')'
Release Shift
Release 0 # Reads as '0' but we now recognize it as the same
9 years ago
Luminarys
a65dca04e8
Style fix
9 years ago
Luminarys
98fad060e2
Added in glitchy disabling
9 years ago
taiyu
d72cc92541
style
9 years ago
taiyu
f24b78898a
dont swap view with workspace...
9 years ago
taiyu
42d5d9a177
mouse tile resize mode done
9 years ago
taiyu
e139de0857
floating/tiling move + floating resize cleaned and fixed
9 years ago
Drew DeVault
b7f4607544
Implement output configuration through config
...
Do not use `output res WIDTHxHEIGHT` yet, wlc has issues with it (cc
@Cloudef)
9 years ago
Luminarys
f6b16ca089
Refactored resizing functions into resize.c
9 years ago
taiyu
5a67628ad9
Merge branch 'master' of https://github.com/SirCmpwn/sway
...
merge
9 years ago
taiyu
1a1ac64662
bugfixes, renames
9 years ago
Drew DeVault
1c38b7a8d2
Merge pull request #111 from Luminarys/master
...
Added in proper resize locking
9 years ago
Luminarys
a8eab5492a
Added in proper resize locking
9 years ago
minus
8dfaf6265b
fixed #108 signed/unsigned comparison
9 years ago
Luminarys
7ecb55f218
Minor style fix
9 years ago
Luminarys
97bd548456
More minor fixes
9 years ago
Luminarys
de86c5f4ea
Cleanup and minor fixes
9 years ago
Drew DeVault
a436fc17ff
Merge pull request #105 from Half-Shot/master
...
Basic 'move' functionality.
9 years ago
Drew DeVault
464b49eda2
Merge pull request #101 from Luminarys/master
...
Added in basic resizing command.
9 years ago
Luminarys
96ab21b276
Fixes to resizing and added in resize lock once boundaries are exceeded
9 years ago
Luminarys
461da7f87f
Added in bspwm like mouse resizing
9 years ago
Luminarys
f589731f29
Rewrite of resize command to make it more sane
9 years ago
Drew DeVault
3a5fce339f
Reset key buffer on reload
...
To preserve my sanity
9 years ago
Half-Shot
713bf29ec9
Few stray bits
9 years ago
Half-Shot
5a9ba261bc
Merge branch 'master' of https://github.com/SirCmpwn/sway
9 years ago
Half-Shot
2a62c5c7fb
Basic left right move command implemented.
9 years ago
minus
754793aad4
added IPC messages get_workspaces and get_outputs
...
No escaping on container names is done yet, as well as some values are
hardcoded because they don't exist yet.
9 years ago
taiyu
36e07e9ebc
find_parent_by_type
9 years ago
Luminarys
bc3babf566
Added in basic resize command
9 years ago
Luminarys
15d9f1edcb
Added in basic resize command
9 years ago
minus
f8787ce69e
added missing header file
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
773e85c681
properly handle IPC clients
9 years ago
minus
5d99215469
added i3-ipc support/parsing
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
taiyu
f5fde7c45c
style
9 years ago
taiyu
fbaa9111a8
setup for resizable windows, drop weight
9 years ago
taiyu
5ff0619ca1
input state, find_container_in_direction
9 years ago
taiyu
470b4dfbae
key_state.ch, and command conflicts resolved
9 years ago
taiyu
c5a6982893
fixed some more bugs, moved layout_log into log.ch, restored focus_parent
9 years ago
taiyu
e16a4015ff
fixed focus key handler
9 years ago
Luminarys
3c430688a8
header update
9 years ago
KoffeinFlummi
c75d5ceba4
Merge remote-tracking branch 'upstream/master' into gaps
9 years ago
KoffeinFlummi
4c688cba4e
Add support for gaps option
9 years ago
minus
faccaf6112
added sway_assert function
...
returns false on a failed assertion in release mode and raises SIGABRT in debug mode
9 years ago
Drew DeVault
85a573dab7
Revert "enhanced whitespace remover"
...
This reverts commit abd0afb03a
.
9 years ago
Drew DeVault
2139001c9f
Coding style enforcement
...
This was done by hand, so I might have missed things. If anyone knows of
a good C style enforcement tool, let me know.
9 years ago
Drew DeVault
2f6dd0687b
Merge pull request #65 from taiyu-len/focus_v2
...
Focus v2
9 years ago
taiyu
b132f67e7b
minor fixes
9 years ago