Mikkel Oscar Lyderik
8955e5f1ad
swaybar: Free unused IPC response
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
crondog
8e8ec6d92b
Merge branch 'master' of https://github.com/SirCmpwn/sway
9 years ago
progandy
21541e9e64
swaybar: Replace fgets with read and own buffer
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
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
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
crondog
70b24fbb1f
Clean up a bit
9 years ago
crondog
d1f6f45cb3
Make start on i3bar json parsing
9 years ago
Mikkel Oscar Lyderik
5c8a3afff9
swaybar: Correct handling of SIGTERM.
...
Swaybar did not correctly handle the SIGTERM sent from sway when
exiting, ultimately leaving the child status_command behind.
This should correctly handle the SIGTERM signal and terminate the
status_command.
Fix #386
9 years ago
Mikkel Oscar Lyderik
83eb8d16aa
swaybar: Add font support
9 years ago
Mikkel Oscar Lyderik
d373a193ac
swaybar: pixel perfect layout
...
This should make the bar workspace button layout identical to the layout
used in i3.
9 years ago
crondog
da6cd3cef7
swaybar: use height from config
9 years ago
Mikkel Oscar Lyderik
bc9b93f597
swaybar: use select instead of busyloop
...
Use of busyloop caused high cpu usage for sway because swaybar had to be
redrawn all the time. By using select instead the bar only has to be
redrawn when the status_command changes (i.e. every second) or when the
workspaces are updated.
Fix #345
9 years ago
crondog
c8555f5813
swaybar: use position from config
9 years ago
Drew DeVault
859f2fea0c
Just bail if ws_json is fucked up
9 years ago
Drew DeVault
de2f3b393a
Wow that was stupid
9 years ago
Drew DeVault
d1e031025d
I'm still getting crashes without this line
9 years ago
S. Christoffer Eliesen
de219f6bec
swaybar: ipc_update_ws: Fix memory corruption.
...
json_object_object_get_ex does not require json_object_put according to
docs, this should fix the random crashes.
9 years ago
Drew DeVault
a116eafaa4
Fix possible segfault in swaybar
9 years ago
S. Christoffer Eliesen
8a6e05d7a1
swaybar: Remove stropts.h, fixes build for fedora.
...
Turns out that fedora killed off stropts.h some time ago [1] and
removing it seems to work just fine. (Tested on Fedora 23)
[1] https://bugzilla.redhat.com/show_bug.cgi?id=439403
9 years ago
Mikkel Oscar Lyderik
529ee83ef6
swaybar: terminate status_command process
...
Fix #346
Send SIGTERM to the `status_command` process before swaybar exits.
9 years ago
Drew DeVault
d91185d67b
Fix null dereference in swaybar
9 years ago
Mikkel Oscar Lyderik
0f7614306d
swaybar: Check that registry is set before teardown
9 years ago
Drew DeVault
adadb109a7
Only re-render swaybar when it has changed
...
Fixes #345
9 years ago
Drew DeVault
5a9cc96446
Make swaybar a little quieter
9 years ago
Mikkel Oscar Lyderik
3bd388a307
Remove trailing whitespace
9 years ago
Mikkel Oscar Lyderik
1db4b4a8f5
Correct typo seperator -> separator
9 years ago
Kevin Hamacher
a9f6cd0e17
Make swaybar run without status_command
9 years ago
Kevin Hamacher
ce8b71415f
Make swaybar check command arguments
9 years ago
Drew DeVault
1825cf32bf
Apply color config from swaybar
9 years ago
Drew DeVault
473ac4531f
[swaybar] Get bar config via IPC
9 years ago
Drew DeVault
f80e7364b1
Parse command line in swaybar
9 years ago
Drew DeVault
93ac7d43a8
Fix rendering of borders on workspaces (swaybar)
9 years ago
Drew DeVault
e277d4e094
Subscribe to workspace change events and redraw
9 years ago
Drew DeVault
7918feb9cd
Display workspaces on swaybar
9 years ago
Drew DeVault
36bf4d24cf
Free last line in swaybar
9 years ago
Drew DeVault
6596582bc3
Display output from a command on swaybar
9 years ago
Drew DeVault
82d464bb90
Add text rendering support to wayland clients
9 years ago
Drew DeVault
e59cffcea2
Support desktop shell panels in compositor
9 years ago
Drew DeVault
60e76cf932
Add swaybar basics
...
This should make the bar open and appear as the panel, once sway
supports panels. Right now it crashes sway!
9 years ago
Drew DeVault
63cf8e48c4
Add swaybar subproject
9 years ago