Drew DeVault
5292860b92
Merge pull request #418 from mikkeloscar/sway-handle-sigterm
...
Handle SIGTERM sent to sway
9 years ago
Mikkel Oscar Lyderik
16b8c2e915
Handle SIGTERM sent to sway
...
This makes sway handle and gracefully shut down everything when
receiving a SIGTERM.
Fix #416
9 years ago
Drew DeVault
d409620a55
Fix use-after-free when closing fullscreen views
9 years ago
Drew DeVault
cf14f37ee2
Add bar to default config
...
Using somewhat saner colors than the i3 default
9 years ago
Drew DeVault
5060c72a54
Add default wallpaper
...
Closes #238
9 years ago
Drew DeVault
631f7e8500
Merge pull request #415 from mikkeloscar/bar-separator
...
swaybar: Add support for custom separator symbol
9 years ago
Mikkel Oscar Lyderik
d72be6c0d5
swaybar: Add support for custom separator symbol
9 years ago
Drew DeVault
e363546b69
Merge pull request #414 from sce/fix_layout_calc
...
Fix layout calculations
9 years ago
S. Christoffer Eliesen
b18f004210
handlers: geometry_request: Better debug output.
...
Previous output was confusing.
9 years ago
S. Christoffer Eliesen
6750975b9f
arrange_windows_r: Round pixels to match reality, fixes calculations.
...
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.
9 years ago
S. Christoffer Eliesen
831f6680f4
arrange_windows_r: Bring parent coordinates into layout calculations.
...
This brings consistency into the algorithm (instead of resetting and
then fetching again).
9 years ago
Drew DeVault
97a4f7ceac
Merge pull request #409 from mikkeloscar/bar-airblade-features
...
swaybar: Add support for Airblade i3bar extensions
9 years ago
Drew DeVault
a67832ab11
Update README
9 years ago
Drew DeVault
82aca85cf8
Merge pull request #410 from mikkeloscar/free-ipc-response
...
swaybar: Free unused IPC response
9 years ago
Mikkel Oscar Lyderik
8955e5f1ad
swaybar: Free unused IPC response
9 years ago
Mikkel Oscar Lyderik
e7aef1e23c
swaybar: if-else style fixes
9 years ago
Mikkel Oscar Lyderik
d21b15a4be
swaybar: Add support for Airblade i3bar extensions
...
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.
9 years ago
Drew DeVault
33a74bfb93
Merge pull request #408 from mikkeloscar/add-focus-sibling
...
Focus new sibling added to container
9 years ago
Mikkel Oscar Lyderik
cf64000e21
Focus new sibling added to container
...
This makes sure that the window being added to a container gets focus.
9 years ago
Drew DeVault
ed46fa7230
Merge pull request #407 from mikkeloscar/trigger-on-move-floating
...
Trigger workspace init event (floating)
9 years ago
Mikkel Oscar Lyderik
5d07c61330
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.
9 years ago
Drew DeVault
3bcb3b332d
Merge pull request #406 from mikkeloscar/fix-swaybar-json
...
swaybar: Fix json related crash.
9 years ago
Mikkel Oscar Lyderik
26d2381040
swaybar: remove random whitespaces
9 years ago
Mikkel Oscar Lyderik
e370187394
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.
9 years ago
Drew DeVault
2179ac353c
Merge pull request #403 from crondog/master
...
swaybar: min_width and align
9 years ago
Drew DeVault
625f90b773
Merge pull request #405 from robotanarchy/add-voidwiki-link-to-readme
...
Readme: add link to sway article in Void Linux wiki
9 years ago
crondog
8e8ec6d92b
Merge branch 'master' of https://github.com/SirCmpwn/sway
9 years ago
robotanarchy
4ec427c0f2
Readme: add link to sway article in Void Linux wiki
9 years ago
Drew DeVault
deb1546be3
Merge pull request #402 from progandy/without-fgets
...
swaybar: read status line without fgets
9 years ago
Drew DeVault
3e84c4b307
Merge pull request #404 from StephenBrown2/readme_feature_support
...
Add references to other feature support issues to README
9 years ago
progandy
21541e9e64
swaybar: Replace fgets with read and own buffer
9 years ago
Stephen Brown II
d1af8c45be
Add references to other feature support issues to README
9 years ago
Drew DeVault
6ed2485134
Merge pull request #401 from mikkeloscar/travis-clang-build
...
Add clang build to travis
9 years ago
crondog
edd93b5b55
swaybar: min_width and align
9 years ago
progandy
b66c51ea2c
swaybar: fix array indices in i3json_handle
9 years ago
Mikkel Oscar Lyderik
c0568395ee
Add clang build to travis
9 years ago
Drew DeVault
ac23fa5f20
Merge pull request #400 from gpyh/forgot_include
...
Bugfix: Added include(GNUInstallDirs)
9 years ago
Yacine Hmito
284720cf5f
Added include(GNUInstallDirs)
...
Fixes configuration not properly installed since f02cf75
9 years ago
Drew DeVault
f438d3897d
Merge pull request #398 from juju2143/bug-correction-1
...
swaygrab: Fix memory leak when recording videos
9 years ago
Drew DeVault
72043b231d
Merge pull request #399 from gpyh/dont-hardcode-path
...
Use SYSCONFDIR as recommended
9 years ago
Yacine Hmito
f02cf75ff3
Use SYSCONFDIR as recommended
...
- swaylock config path not hardcoded anymore
- the unusual and weird FALLBACK_CONFIG_DIR is no more
9 years ago
Julien Savard
7b00eab8ad
swaygrab: Fix memory leak when recording videos
9 years ago
Drew DeVault
23df7ed502
Merge pull request #396 from crondog/fixbar
...
Stop swaybar from not rendering after the first go around
9 years ago
crondog
bd74320da9
Stop swaybar from not rendering after the first go around
...
I am not sure if this is a correct issue/fix but on my system at least
after an i3bar protocol is detected this while loop never goes back
around meaning it doesnt process the status line anymore.
9 years ago
Drew DeVault
27848b41ab
Merge pull request #394 from progandy/i3bar-json-protocol
...
swaybar: I3bar json protocol
9 years ago
progandy
8fefdb3c64
swaybar: fix memory leaks
9 years ago
progandy
d060d0a39f
swaybar: add a visible separator between elements
9 years ago
progandy
aa5930c966
swaybar: Improve i3bar proto implementation
...
Also reintroduce plaintext fallback for simple status lines.
9 years ago
progandy
d37169a927
swaybar: fix whitespace
9 years ago
Drew DeVault
8a22ac3966
Initialize id, part two
9 years ago