aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/main.c
Commit message (Collapse)AuthorAge
* Make command line option lists constLibravatar Manuel Stoeckl2021-02-04
|
* Changed fprintf(stdout,...) to printf(...) for more readable codeLibravatar SpizzyCoder2021-01-16
|
* swaybar: prevent signal handler from firing during terminationLibravatar Ian Fan2019-02-15
| | | | This prevents a heap-use-after-free crash when sway terminates.
* Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* swaybar: improve tray loggingLibravatar Ian Fan2019-01-08
|
* Replace _XOPEN_SOURCE with _POSIX_C_SOURCELibravatar emersion2018-11-25
| | | | And make sure we don't define both in the same source file.
* swaybar: save id upon startupLibravatar Ian Fan2018-10-14
| | | | | This adds an id property to the bar, which will be used to filter barconfig_update events
* Fix program name in version stringsLibravatar Ryan Dwyer2018-10-10
| | | | | | | | | | | | | When running swaymsg -v, the version returned is actually the version of swaymsg itself, yet the message displayed was "sway version <version>". This can create confusion if users update sway and swaymsg but don't restart sway, then use swaymsg to check the version. This patch changes the wording to be "swaymsg version <version>" instead, and likewise for swaybar. To get the version of a running sway instance, users should run swaymsg -t get_version.
* swaybar: fail if bar id is invalidLibravatar Ian Fan2018-09-28
|
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* Start port of swaybar to layer shellLibravatar Drew DeVault2018-03-29
| | | | | | This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
* Add -DVERSION flag for release version numbersLibravatar Sebastian Noack2017-04-26
|
* UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
|
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* Make single bar handle multiple outputsLibravatar Mikkel Oscar Lyderik2016-02-27
|
* Correctly exit sway on errors.Libravatar Mikkel Oscar Lyderik2016-02-26
| | | | | | | | Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
* swaybar: move headers to include/barLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: rename state to barLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: move core functionality to state.cLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: Move swaybar_teardown to free_stateLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: move ipc stuff to ipc.{h,c}Libravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: feactor render, statuslineLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: Separate configLibravatar Mikkel Oscar Lyderik2016-01-24
|
* swaybar: add --help optionLibravatar Christoph Gysin2016-01-23
|
* swaybar: debug option takes no argumentLibravatar Christoph Gysin2016-01-23
|
* Fix whitespace issues.Libravatar Mikkel Oscar Lyderik2016-01-05
|
* swaybar: fix loggingLibravatar crondog2016-01-04
| | | | | Optionally turn on debugging in swaybar. I acidentally introduced persistent logging in a previous commit
* swaybar: Implement workspace_buttons yes|noLibravatar Mikkel Oscar Lyderik2016-01-03
|
* swaybar: Implement binding_mode_indicatorLibravatar Mikkel Oscar Lyderik2016-01-03
|
* Merge pull request #427 from mikkeloscar/ipc-updateLibravatar Drew DeVault2016-01-03
|\ | | | | Refactor IPC server/client
| * Add type to returned response.Libravatar Mikkel Oscar Lyderik2016-01-03
| | | | | | | | | | | | | | 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.
| * swaybar: rename ipc_listen_sock.. to ipc_event_sock..Libravatar Mikkel Oscar Lyderik2016-01-03
| |
* | Only strip when starting with a numLibravatar Mikkel Oscar Lyderik2016-01-03
| | | | | | | | | | This makes sure the `:` isn't striped if you have a workspace named: `:something`.
* | swaybar: Implement strip_workspace_numbersLibravatar Mikkel Oscar Lyderik2016-01-03
|/
* saybar: remove stray loglineLibravatar Mikkel Oscar Lyderik2015-12-29
|
* swaybar: Add support for custom separator symbolLibravatar Mikkel Oscar Lyderik2015-12-28
|
* Merge pull request #409 from mikkeloscar/bar-airblade-featuresLibravatar Drew DeVault2015-12-27
|\ | | | | swaybar: Add support for Airblade i3bar extensions
| * swaybar: if-else style fixesLibravatar Mikkel Oscar Lyderik2015-12-27
| |
| * swaybar: Add support for Airblade i3bar extensionsLibravatar Mikkel Oscar Lyderik2015-12-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | swaybar: Free unused IPC responseLibravatar Mikkel Oscar Lyderik2015-12-27
|/
* swaybar: remove random whitespacesLibravatar Mikkel Oscar Lyderik2015-12-25
|
* swaybar: Fix json related crash.Libravatar Mikkel Oscar Lyderik2015-12-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.
* Merge branch 'master' of https://github.com/SirCmpwn/swayLibravatar crondog2015-12-25
|\
| * swaybar: Replace fgets with read and own bufferLibravatar progandy2015-12-24
| |
| * swaybar: fix array indices in i3json_handleLibravatar progandy2015-12-24
| |
* | swaybar: min_width and alignLibravatar crondog2015-12-24
|/
* Stop swaybar from not rendering after the first go aroundLibravatar crondog2015-12-23
| | | | | | 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.
* swaybar: fix memory leaksLibravatar progandy2015-12-22
|
* swaybar: add a visible separator between elementsLibravatar progandy2015-12-22
|
* swaybar: Improve i3bar proto implementationLibravatar progandy2015-12-22
| | | | Also reintroduce plaintext fallback for simple status lines.