aboutsummaryrefslogtreecommitdiff
path: root/sway
AgeCommit message (Collapse)Author
2016-01-23sway-input: fix typoChristoph Gysin
2016-01-22manpage: fix sway-input layoutMikkel Oscar Lyderik
2016-01-22manpage: add references sway.5 <-> sway-input.5Mikkel Oscar Lyderik
2016-01-22Fix generating sway-input.5 manpageMikkel Oscar Lyderik
2016-01-22cmake: fix libinput include dirsMikkel Oscar Lyderik
2016-01-22Prevent ipc from crashing swaycrondog
2016-01-21Only update visibility if WS isn't destroyed afterMikkel Oscar Lyderik
No need to update visibility if the workspace will be destroyed right after.
2016-01-21Fix issue #455Yacine Hmito
CMAKE_INSTALL_FULL_SYSCONFIG is not actually passed to the C preprocessor. I remember it working, so I must have messed up somewhere last time I touched this. This is fixed by manually passing its value to the C preprocessor through the SYSCONFDIR definition
2016-01-21Fix memory leak in config.cDrew DeVault
Thanks @jollywho
2016-01-21Strip stray whitespaceMikkel Oscar Lyderik
2016-01-19libinputCole Mickens
2016-01-15cmd_assigncrondog
This implements cmd_assign. Basically a copy and paste from cmd_for_window however it has → handling and injects a `move container to workspace`
2016-01-11Strip quotes from workspace name v2Mikkel Oscar Lyderik
This is a more general fix for #444 This reverts part of commit 222f0d44fcda494dca4d5278493a3082068743de.
2016-01-11Strip quotes of each argv when handling commandMikkel Oscar Lyderik
2016-01-11Strip quotes from workspace name.Mikkel Oscar Lyderik
Fix #444 This is a temporary fix, the real fix is to store the commands as a formatted argv array, so they don't have to be reformatted all over the place.
2016-01-09Add backwards compatability for binding eventMikkel Oscar Lyderik
2016-01-09Add bindcode to binding events.Mikkel Oscar Lyderik
2016-01-09Add support for bincode commandMikkel Oscar Lyderik
If a bindsym and bincode maps to the same combination, the last one will overwrite any previous mappings.
2016-01-08Unescape string after doing var replacementMikkel Oscar Lyderik
Fix #426
2016-01-08Make IPC binding event support a compile time opt.Mikkel Oscar Lyderik
2016-01-08Reduce duplicate codeMikkel Oscar Lyderik
2016-01-08Implement IPC binding event (keyboard)Mikkel Oscar Lyderik
This implements the IPC binding event for keyboard bindings. It is slightly different from the i3 implementation [1] since sway supports more than one non-modifier key in a binding. Thus the json interface has been changed from: { ... "symbol": "t", ... } to: { ... "symbols": [ "t" ], ... } [1] http://i3wm.org/docs/ipc.html#_binding_event
2016-01-08Add function for duplication a sway_bindingMikkel Oscar Lyderik
2016-01-07Implement bindsym --releaseMikkel Oscar Lyderik
This is a "simple" version of --release (same as i3) that only supports a binding that contain one normal key. e.g.: bindsym --release $mod+x exec somthing-fun I didn't bother implementing it for a combination like `$mod+x+z` since it is a bit tricky to get right and also a bit weird to actually do on a keyboard.
2016-01-06Merge pull request #434 from mikkeloscar/detect-modifierDrew DeVault
Send IPC modifier event on bar_modifier up/down
2016-01-05Merge branch 'master' of github.com:SirCmpwn/swayMikkel Oscar Lyderik
2016-01-05Fix whitespace issues.Mikkel Oscar Lyderik
2016-01-05Only send modifier event once for active modifiersMikkel Oscar Lyderik
This makes sure that a modifier event is only sent for active bar modifiers, and that it is only sent once for each of those modifiers. An active bar modifier is a modifier defined for a bar with `mode hide` and `hidden_state hide`.
2016-01-05Clearer order of locations searched for config file.Jøhannes Lippmann
The i3wm config locations are visited _before_ using the fallback configs. The man page was confusing - it talked about the fallback configs first, but also said they are looked at "at last". By changing the order of the sentences, this should be clearer.
2016-01-05Init layout before checking configMikkel Oscar Lyderik
2016-01-05Add modifier key to bar_config jsonMikkel Oscar Lyderik
2016-01-05Move modifier name table to common/util.cMikkel Oscar Lyderik
Lookup of modifier names is required in several places, thus it makes sense to move it to a general place.
2016-01-04Revert "Free wordexp_t in config.c:get_config_path"Drew DeVault
This reverts commit 33b24736c78d9993a26d295ea3e56ad77d6f1390.
2016-01-05Send IPC modifier event on bar_modifier up/downMikkel Oscar Lyderik
Detects when a bar modifier key is pressed/released and sends a modifier IPC event to any listeners (usually swaybars). This way a swaybar can listen on the modifier event and hide/show the bar accordingly (not implemented yet) The modifier event looks like this: { "change": "pressed", // or released "modifier": "Mod4" }
2016-01-04Free wordexp_t in config.c:get_config_pathDrew DeVault
Thanks @jollywho
2016-01-05Merge pull request #433 from crondog/issue431Mikkel Oscar Lyderik
Return focus to fullscreen view
2016-01-05Return focus to fullscreen viewcrondog
This fixes https://github.com/SirCmpwn/sway/issues/431 by returning focus to the fullscreen view. Also it fixes the issue with the fullscreen view pointer not being set which did my head in
2016-01-05Detect bar modifier pressed/releasedMikkel Oscar Lyderik
2016-01-04Fix overwriting current pressed keys.Mikkel Oscar Lyderik
This fixes a bug where the key at index 0 in the `key_state_array` would be overwritten by the next pressed key. This broke any bindings consisting of multiple non-mod keys like: `$mod+a+b`.
2016-01-03swaybar: Implement binding_mode_indicatorMikkel Oscar Lyderik
2016-01-03Add IPC event typesMikkel Oscar Lyderik
Adds custom IPC_EVENT_* types
2015-12-31split togglecrondog
Not sure if you will accept this, but i find it useful (I use it when opening new terminal windows on a workspace v2: add short hand command and docs
2015-12-30Dont try and fullscreen a workspace with no viewscrondog
Found this completely by accident
2015-12-29Merge pull request #418 from mikkeloscar/sway-handle-sigtermDrew DeVault
Handle SIGTERM sent to sway
2015-12-29Handle SIGTERM sent to swayMikkel Oscar Lyderik
This makes sway handle and gracefully shut down everything when receiving a SIGTERM. Fix #416
2015-12-29Fix use-after-free when closing fullscreen viewsDrew DeVault
2015-12-28handlers: geometry_request: Better debug output.S. Christoffer Eliesen
Previous output was confusing.
2015-12-28arrange_windows_r: Round pixels to match reality, fixes calculations.S. Christoffer Eliesen
If the width or height of a container can't be evenly distributed to its children, then the layout algorithm still thought it got it right (due to using decimals) which caused a gap of one or more pixels for some window arrangements. This is fixed by this patch by first rounding off the width and height (so that decimals are never introduced) and then adjusting the last view in a container to fill the remaining pixels (which now is counted correctly due to the decimals being removed). Also, due to the way gaps are implemented, an odd sized gap can never be aligned properly, so just adjust to closest even number.
2015-12-28arrange_windows_r: Bring parent coordinates into layout calculations.S. Christoffer Eliesen
This brings consistency into the algorithm (instead of resetting and then fetching again).
2015-12-25Focus new sibling added to containerMikkel Oscar Lyderik
This makes sure that the window being added to a container gets focus.