Age | Commit message (Collapse) | Author |
|
|
|
Also use the safer snprintf since we just computed the size.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
|
|
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
No need to update visibility if the workspace will be destroyed right
after.
|
|
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
|
|
Thanks @jollywho
|
|
|
|
|
|
This implements cmd_assign. Basically a copy and paste from
cmd_for_window however it has → handling and injects a `move container to
workspace`
|
|
This is a more general fix for #444
This reverts part of commit 222f0d44fcda494dca4d5278493a3082068743de.
|
|
|
|
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.
|
|
|
|
|
|
If a bindsym and bincode maps to the same combination, the last one will
overwrite any previous mappings.
|
|
Fix #426
|
|
|
|
|
|
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
|
|
|
|
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.
|
|
Send IPC modifier event on bar_modifier up/down
|
|
|
|
|
|
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`.
|
|
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.
|
|
|
|
|
|
Lookup of modifier names is required in several places, thus it makes
sense to move it to a general place.
|
|
This reverts commit 33b24736c78d9993a26d295ea3e56ad77d6f1390.
|
|
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"
}
|
|
Thanks @jollywho
|
|
Return focus to fullscreen view
|
|
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
|
|
|
|
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`.
|
|
|
|
Adds custom IPC_EVENT_* types
|
|
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
|
|
Found this completely by accident
|
|
Handle SIGTERM sent to sway
|
|
This makes sway handle and gracefully shut down everything when
receiving a SIGTERM.
Fix #416
|
|
|
|
Previous output was confusing.
|