Age | Commit message (Collapse) | Author |
|
Implement bindsym --release
|
|
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`.
|
|
Clearer order of locations searched for config file.
|
|
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
|
|
|
|
Fix overwriting current pressed keys.
|
|
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`.
|
|
swaybar: fix logging
|
|
Optionally turn on debugging in swaybar. I acidentally introduced
persistent logging in a previous commit
|
|
swaybar: Implement workspace_buttons yes|no
|
|
|
|
swaybar: Implement binding_mode_indicator
|
|
|
|
Refactor IPC server/client
|
|
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.
|
|
Adds custom IPC_EVENT_* types
|
|
|
|
Only strip when starting with a num
|
|
This makes sure the `:` isn't striped if you have a workspace named:
`:something`.
|
|
swaybar: Implement strip_workspace_numbers
|
|
|
|
split toggle
|
|
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
|
|
Dont try and fullscreen a workspace with no views
|
|
Found this completely by accident
|
|
saybar: remove stray logline
|
|
Handle SIGTERM sent to sway
|
|
This makes sway handle and gracefully shut down everything when
receiving a SIGTERM.
Fix #416
|
|
|
|
|
|
Using somewhat saner colors than the i3 default
|
|
Closes #238
|
|
swaybar: Add support for custom separator symbol
|
|
|
|
Fix layout calculations
|
|
Previous output was confusing.
|
|
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.
|