Age | Commit message (Collapse) | Author |
|
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
|
|
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.
|
|
This brings consistency into the algorithm (instead of resetting and
then fetching again).
|
|
swaybar: Add support for Airblade i3bar extensions
|
|
|
|
swaybar: Free unused IPC response
|
|
|
|
|
|
This extends the i3bar protocol implementation with the following
features from @Airblade/i3:
* background
* border
* border_top, border_bottom, border_left, border_right
A block will now be rendered like this:
```
(border_left + margin) + width + (margin + border_right) + sep
```
Where `border_left/border_right` and their related margin is only drawn
if the `border` is specified and the border has a width > 0 (default is
1).
`border_top` and `border_bottom` does not affect the height of the bar
(no margin is added), thus it will be drawn behind the text if it is too
big. The user should specify a bar height if more space between
top/bottom borders are required.
|
|
Focus new sibling added to container
|
|
This makes sure that the window being added to a container gets focus.
|
|
Trigger workspace init event (floating)
|
|
Triggers workspace init event when moving a floating window to a new
workspace.
This is a follow up on #391 which didn't handle floating windows.
|
|
swaybar: Fix json related crash.
|
|
|
|
This should fix the random json related crashes in swaybar.
The crashes occured because the same socket was used for listening on
workspace events and requesting workspace info, resulting in a
unreliable message queue on the socket.
The solution is to use one socket for the events and one socket for
reliably requesting workspace/output info.
|
|
swaybar: min_width and align
|
|
Readme: add link to sway article in Void Linux wiki
|
|
|
|
|
|
swaybar: read status line without fgets
|