aboutsummaryrefslogtreecommitdiff
path: root/swaybar
AgeCommit message (Collapse)AuthorLines
2016-01-05Fix whitespace issues.Mikkel Oscar Lyderik-1/+1
2016-01-04swaybar: fix loggingcrondog-3/+13
Optionally turn on debugging in swaybar. I acidentally introduced persistent logging in a previous commit
2016-01-03swaybar: Implement workspace_buttons yes|noMikkel Oscar Lyderik-6/+14
2016-01-03swaybar: Implement binding_mode_indicatorMikkel Oscar Lyderik-7/+76
2016-01-03Merge pull request #427 from mikkeloscar/ipc-updateDrew DeVault-11/+10
Refactor IPC server/client
2016-01-03Add type to returned response.Mikkel Oscar Lyderik-3/+2
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.
2016-01-03swaybar: rename ipc_listen_sock.. to ipc_event_sock..Mikkel Oscar Lyderik-9/+9
2016-01-03Only strip when starting with a numMikkel Oscar Lyderik-1/+1
This makes sure the `:` isn't striped if you have a workspace named: `:something`.
2016-01-03swaybar: Implement strip_workspace_numbersMikkel Oscar Lyderik-4/+38
2015-12-29saybar: remove stray loglineMikkel Oscar Lyderik-2/+0
2015-12-28swaybar: Add support for custom separator symbolMikkel Oscar Lyderik-7/+29
2015-12-27Merge pull request #409 from mikkeloscar/bar-airblade-featuresDrew DeVault-76/+240
swaybar: Add support for Airblade i3bar extensions
2015-12-27swaybar: Free unused IPC responseMikkel Oscar Lyderik-0/+1
2015-12-27swaybar: if-else style fixesMikkel Oscar Lyderik-10/+5
2015-12-27swaybar: Add support for Airblade i3bar extensionsMikkel Oscar Lyderik-66/+235
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.
2015-12-25swaybar: remove random whitespacesMikkel Oscar Lyderik-4/+4
2015-12-25swaybar: Fix json related crash.Mikkel Oscar Lyderik-15/+25
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.
2015-12-25Merge branch 'master' of https://github.com/SirCmpwn/swaycrondog-60/+173
2015-12-24swaybar: Replace fgets with read and own bufferprogandy-54/+167
2015-12-24swaybar: min_width and aligncrondog-20/+32
2015-12-24swaybar: fix array indices in i3json_handleprogandy-6/+6
2015-12-23Stop swaybar from not rendering after the first go aroundcrondog-4/+3
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.
2015-12-22swaybar: fix memory leaksprogandy-2/+38
2015-12-22swaybar: add a visible separator between elementsprogandy-4/+17
2015-12-22swaybar: Improve i3bar proto implementationprogandy-13/+134
Also reintroduce plaintext fallback for simple status lines.
2015-12-22swaybar: fix whitespaceprogandy-133/+127
2015-12-22Clean up a bitcrondog-6/+17
2015-12-22Make start on i3bar json parsingcrondog-5/+143
2015-12-21swaybar: Correct handling of SIGTERM.Mikkel Oscar Lyderik-8/+22
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
2015-12-20swaybar: Add font supportMikkel Oscar Lyderik-0/+13
2015-12-20swaybar: pixel perfect layoutMikkel Oscar Lyderik-18/+21
This should make the bar workspace button layout identical to the layout used in i3.
2015-12-20swaybar: use height from configcrondog-11/+19
2015-12-19swaybar: use select instead of busyloopMikkel Oscar Lyderik-35/+50
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
2015-12-19swaybar: use position from configcrondog-1/+18
2015-12-18Just bail if ws_json is fucked upDrew DeVault-1/+1
2015-12-18Wow that was stupidDrew DeVault-1/+1
2015-12-18I'm still getting crashes without this lineDrew DeVault-0/+3
2015-12-18swaybar: ipc_update_ws: Fix memory corruption.S. Christoffer Eliesen-12/+0
json_object_object_get_ex does not require json_object_put according to docs, this should fix the random crashes.
2015-12-18Fix possible segfault in swaybarDrew DeVault-0/+4
2015-12-18swaybar: Remove stropts.h, fixes build for fedora.S. Christoffer Eliesen-1/+0
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
2015-12-18swaybar: terminate status_command processMikkel Oscar Lyderik-1/+41
Fix #346 Send SIGTERM to the `status_command` process before swaybar exits.
2015-12-17Fix null dereference in swaybarDrew DeVault-0/+4
2015-12-17swaybar: Check that registry is set before teardownMikkel Oscar Lyderik-1/+3
2015-12-16Only re-render swaybar when it has changedDrew DeVault-2/+5
Fixes #345
2015-12-16Make swaybar a little quieterDrew DeVault-6/+0
2015-12-16Remove trailing whitespaceMikkel Oscar Lyderik-1/+1
2015-12-16Correct typo seperator -> separatorMikkel Oscar Lyderik-3/+3
2015-12-16Make swaybar run without status_commandKevin Hamacher-22/+41
2015-12-16Make swaybar check command argumentsKevin Hamacher-0/+8
2015-12-15Apply color config from swaybarDrew DeVault-2/+72