S. Christoffer Eliesen
362413bd50
commands: cmd_results->input is duplicated/freed.
9 years ago
S. Christoffer Eliesen
88a2ddbe83
commands: Code formatting.
9 years ago
S. Christoffer Eliesen
187f0ab1c4
commands: Allow 'floating_modifier' & 'focus_follows_mouse' at runtime.
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
9b271573a9
commands: Allow changing resolution outside config load.
9 years ago
S. Christoffer Eliesen
ca862a5bd4
config: Apply output config also during config reload.
9 years ago
S. Christoffer Eliesen
6eb8da0e14
commands,container: Tweak debug output to better reflect reality.
9 years ago
S. Christoffer Eliesen
e3837ba634
commands: Gracefully handle empty commands.
...
Before this patch sway would proceed into find_handler which would cause
a crash trying to parse a NULL string.
This could be triggered via e.g. `i3-msg -s $(sway --get-socketpath)`.
9 years ago
S. Christoffer Eliesen
71ebe8c36b
commands: Catch empty exec with --no-startup-id cases.
9 years ago
S. Christoffer Eliesen
71bcee4f96
commands: Ignore exec switch "--no-startup-id".
...
When using an i3 config verbatim in sway this switch to exec or
exec_always might appear.
Before this patch the switch would be passed to /bin/sh, causing
an error, and the command would not be run.
9 years ago
taiyu
18f4905e62
#187 , let init handle child processes
9 years ago
taiyu
7672886cb5
dont log empty config lines
9 years ago
taiyu
0d51f62224
merge + no c_extensions
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
taiyu
a04f645d7c
style, safer fork
9 years ago
taiyu
a18caf6706
nomacro
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
2093d4ddee
cmd_for_window dummy function
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
799ff640f8
remove old things
9 years ago
taiyu
aa22dc3113
var replacement changes
9 years ago
taiyu
d673a72705
set variable changes
9 years ago
taiyu
3eb29ea736
strdup + style
9 years ago
taiyu
71af5b7dde
config modes
9 years ago
taiyu
3e9cdfd6a3
man page
9 years ago
taiyu
f25c6b312b
gap resize
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
taiyu
972748e674
cleaned up leaky prev_workspace_name
9 years ago
Luminarys
12e96f0f9e
Added in workspace_auto_back_and_forth
9 years ago
Luminarys
23f040133d
Removed unnecessary debug line
9 years ago
Luminarys
fe2ec8a676
Added in workspace back_and_forth
9 years ago
taiyu
f787fac8fc
#153 add "ctrl" and "alt" to modifiers struct
9 years ago
Luminarys
28e937020a
Made scratchpad handling identical to i3
9 years ago
Luminarys
167409702f
Fixed move scratchpad and added in scratchpad show
9 years ago
Luminarys
7eefecf479
Added in scratchpad adding
9 years ago
taiyu
63e735270c
move v3
9 years ago
taiyu
28c22c8f80
style
9 years ago
taiyu
1820b3f0bb
move function redone
9 years ago
Luminarys
acb3fbdfb5
Added in default_orientation handling
9 years ago
taiyu
4df64127e9
slight fix
9 years ago
taiyu
1fa7a91bfb
move_container_to fixup
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
taiyu
c8415d7fef
split_string memory leaks cleanedup
9 years ago
Luminarys
7a21388997
Minor fix
9 years ago
Luminarys
e01cf0b566
Added in glitchy disabling
9 years ago
Luminarys
98fad060e2
Added in glitchy disabling
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
Luminarys
ad1ca31dd5
Altered resize command to prevent resizing past min h/w
9 years ago
Luminarys
63a3236064
Fixed resizing
9 years ago
taiyu
d2e1c660b1
swayc_is_fullscreen
9 years ago
taiyu
1a1ac64662
bugfixes, renames
9 years ago
minus
8dfaf6265b
fixed #108 signed/unsigned comparison
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
f589731f29
Rewrite of resize command to make it more sane
9 years ago
Half-Shot
68213d57c5
Fixed style errors
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
taiyu
36e07e9ebc
find_parent_by_type
9 years ago
Luminarys
c9935507f2
Style fixes
9 years ago
Luminarys
d06732e1a8
Altered incorrect comment
9 years ago
Luminarys
bc3babf566
Added in basic resize command
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
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
Luminarys
29b6b2f37b
Fixed mode_toggle
9 years ago
taiyu
48a983316c
floating mode_toggle
9 years ago
taiyu
289aab9f0a
removed debug which shouldnt be there
9 years ago
taiyu
8205a6fd3b
floating_modifier uses mod_keys instead of anykey
9 years ago
Drew DeVault
8fb2e7e34e
Merge pull request #79 from taiyu-len/master
...
fixed floating_modifier related things
9 years ago
Syed Amer Gilani
95517ac77e
fix a few possible memory leaks
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
Drew DeVault
cf916bbf6f
Improvements to gaps
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
Half-Shot
f314d95103
Merge branch 'master' of https://github.com/SirCmpwn/sway
9 years ago
Will Hunt
d6ab5e481b
Beguin work on the move command.
...
Stubbed method.
9 years ago
taiyu
03e83c7ef9
restored fullscreen/focus behavior
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
abd0afb03a
enhanced whitespace remover
9 years ago
taiyu
4606fb1ee3
merged Luminarys resizing code
9 years ago
taiyu
11321ca2dd
changed handling of focus, handling of view by type
9 years ago
Luminarys
e541ba3d87
Added in basic, but semi-broken moving/resizing functionality to floating windows
9 years ago
Drew DeVault
780893a933
Add support for workspace [name] output [name]
9 years ago
Luminarys
3f475f5009
Minor fix to do proper floating refocuses
9 years ago
Luminarys
47ec999e71
Fixes to floating and umanaged views
9 years ago
Luminarys
05f969074e
Added in basic floating toggling
9 years ago
Luminarys
6b80879ec9
Minor naming fix workspace changing commands
9 years ago
Drew DeVault
7f4529ec8b
Merge pull request #44 from Luminarys/master
...
Added in workspace next/prev and workspace output_next/prev
9 years ago
taiyu
5b860c67c3
fixed split [vh], small memory leak, unescape_strings handle \xnn
9 years ago
Luminarys
0a0fe18fd6
Added in workspace next/prev and workspace output_next/prev
9 years ago
Luminarys
dfaf3a059f
Added in better exit handling
9 years ago
Luminarys
c94c41d1db
Added in kill command
9 years ago
Drew DeVault
360b3d67b0
Add split [h|v|horizontal|vertical] command
9 years ago
taiyu
824a3d81aa
fixed fullscreen & focusing
9 years ago
Drew DeVault
d5ff5e98fa
Fix build
9 years ago
taiyu
9bb2788768
fixed split
9 years ago
Taiyu
80ae2a7774
removed debug
9 years ago
Taiyu
b8cba33c01
changed swayc related functions, cleaned up some functions, moved wlc related things into handlers
9 years ago
Luminarys
ffe59b27a9
Style fix
9 years ago
Luminarys
ea9efc884d
Allowed for execd commands to be spawned after abort
9 years ago
Luminarys
d785cbd54c
Even more style fixes
9 years ago
Luminarys
7788aa4cbd
More style fixes
9 years ago
Luminarys
527288a826
fixes to cmd queue freeing, style
9 years ago
Luminarys
ab130fb56b
Added in command queue
9 years ago
Taiyu
7d294213d1
style
9 years ago
Taiyu
e3edab8a4c
change workspace layout when trying to split it
9 years ago
Taiyu
57c28f96fd
split workspace bug
9 years ago
Taiyu
0a205776d7
small change
9 years ago
Taiyu
ad21281540
style, spelling
9 years ago
Taiyu
5df5b00989
moved signal handling to main
9 years ago
Taiyu
f798e9bb0b
moved fd modifying stuff to log.c
9 years ago
Taiyu
ac1c2d31bf
no more output from programs called with exec, fixed focus return values
9 years ago
Taiyu
dc9efcd79f
better error handling
9 years ago
Taiyu
65406cb61b
safer forking, reduce duplicate code, cleanup zombie processes
9 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
9 years ago
Taiyu
beabb12d63
destroys empty workspace + minor bugfixes
9 years ago
Luminarys
a386d98518
Changed cmd handlers to use bool instead of int
9 years ago
Taiyu
f62a700bc8
return 0 on success for cmd_fullscreen
9 years ago
Taiyu
604be65625
make cmd_workspace return 0 on success
9 years ago
Jose Diez
8cc2c6fa7a
Basic workspace functionality
9 years ago
Taiyu
820dda1be6
fixed small memory leak. v2
9 years ago
Drew DeVault
54374d81b5
Fix some errors with config loading
9 years ago
Luminarys
d570acd395
Changed cmd_reload to arrange windows post reload
9 years ago
Luminarys
88997bbfe6
Minor fix
9 years ago
Luminarys
508980e3ab
Abstracted load_config
9 years ago
Luminarys
7c02a1967b
Spaces to Tabs
9 years ago
Luminarys
68beabda03
Style fixes and slight reload command alteration
9 years ago
Luminarys
c0ee2a6406
Added in reload and exec_always handling
9 years ago
Taiyu
b43161fd45
fixed focus_parent, moved into move_focus() function
9 years ago
Drew DeVault
f6e65b6bb2
Don't override keys if command fails
9 years ago
Drew DeVault
b49cfa0c16
Fix bug with focus parent
...
Thanks anon
9 years ago
Drew DeVault
0078a6fa36
Flesh out fullscreen support a bit
9 years ago