aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-08Unescape string after doing var replacementMikkel Oscar Lyderik
Fix #426
2016-01-08Merge pull request #438 from mikkeloscar/binding-eventDrew DeVault
Implement IPC binding event (keyboard)
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-08Add function for getting list of modifier names.Mikkel Oscar Lyderik
Get an array of modifier names from modifier masks.
2016-01-07Merge pull request #439 from mikkeloscar/bindsym-releaseDrew DeVault
Implement bindsym --release
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-05Fix whitespaces in cmake configMikkel Oscar Lyderik
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-05Merge pull request #436 from Kaligule/masterDrew DeVault
Clearer order of locations searched for config file.
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-04Merge pull request #432 from mikkeloscar/fix-sway-multikeyDrew DeVault
Fix overwriting current pressed keys.
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-03Merge pull request #430 from crondog/swaybarlogDrew DeVault
swaybar: fix logging
2016-01-04swaybar: fix loggingcrondog
Optionally turn on debugging in swaybar. I acidentally introduced persistent logging in a previous commit
2016-01-03Merge pull request #429 from mikkeloscar/bar-workspace-buttonsDrew DeVault
swaybar: Implement workspace_buttons yes|no
2016-01-03swaybar: Implement workspace_buttons yes|noMikkel Oscar Lyderik
2016-01-03Merge pull request #428 from mikkeloscar/bar-mode-indicatorDrew DeVault
swaybar: Implement binding_mode_indicator
2016-01-03swaybar: Implement binding_mode_indicatorMikkel Oscar Lyderik
2016-01-03Merge pull request #427 from mikkeloscar/ipc-updateDrew DeVault
Refactor IPC server/client
2016-01-03Add type to returned response.Mikkel Oscar Lyderik
Makes `ipc_recv_response` return a struct with size, type and payload rather than just the payload string. This is useful if the type has to be checked on the client.
2016-01-03Add IPC event typesMikkel Oscar Lyderik
Adds custom IPC_EVENT_* types
2016-01-03swaybar: rename ipc_listen_sock.. to ipc_event_sock..Mikkel Oscar Lyderik
2016-01-03Merge pull request #425 from mikkeloscar/bar-strip-ws-numDrew DeVault
Only strip when starting with a num
2016-01-03Only strip when starting with a numMikkel Oscar Lyderik
This makes sure the `:` isn't striped if you have a workspace named: `:something`.
2016-01-03Merge pull request #424 from mikkeloscar/bar-strip-ws-numDrew DeVault
swaybar: Implement strip_workspace_numbers
2016-01-03swaybar: Implement strip_workspace_numbersMikkel Oscar Lyderik
2015-12-30Merge pull request #421 from crondog/splittoggleDrew DeVault
split toggle
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-29Merge pull request #419 from crondog/fullscreenDrew DeVault
Dont try and fullscreen a workspace with no views
2015-12-30Dont try and fullscreen a workspace with no viewscrondog
Found this completely by accident
2015-12-29Merge pull request #417 from mikkeloscar/remove-log-lineDrew DeVault
saybar: remove stray logline
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-29saybar: remove stray loglineMikkel Oscar Lyderik
2015-12-29Fix use-after-free when closing fullscreen viewsDrew DeVault