Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yet another swaybar ipc implementation #1244

Merged
merged 23 commits into from
Dec 1, 2021
Merged

Commits on Oct 20, 2020

  1. Configuration menu
    Copy the full SHA
    8a0e76c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ebdeb86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    23e5181 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2020

  1. feat(util): SafeSignal class for cross-thread signals with arguments

    Implement a wrapper over Glib::Dispatcher that passes the arguments to
    the signal consumer via synchronized `std::queue`.
    Arguments are always passed by value and the return type of the signal
    is expected to be `void`.
    alebastr committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    285a264 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79883db View commit details
    Browse the repository at this point in the history
  3. test(util): add tests for SafeSignal

    Add a fixture for writing tests that require interaction with Glib event
    loop and a very basic test for SafeSignal.
    alebastr committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    3e2197a View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. feat(bar): support swaybar mode for configuring window

    Use `mode` (`waybar::Bar::setMode`) as a shorthand to configure bar
    visibility, layer, exclusive zones and input event handling in the same
    way as `swaybar` does.
    See `sway-bar(5)` for a description of available modes.
    alebastr committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    03a641e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc13453 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2021

  1. feat(bar): store modes as a map of presets

    This allows to apply the mode atomically and adds possibility of
    defining custom modes (to be implemented).
    alebastr committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    6d2ba7a View commit details
    Browse the repository at this point in the history
  2. feat(bar): use "default" mode to store global options

    Read `layer`, `exclusive`, `passthrough` into a special mode "default".
    Drop `overlay` layer hacks, as it's easier to use `"mode": "overlay"`
    for the same result.
    alebastr committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    ae88d7d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    87b43c2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5baffbf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    452dcaa View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5905078 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2021

  1. Configuration menu
    Copy the full SHA
    52361ed View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2021

  1. Configuration menu
    Copy the full SHA
    6bfb674 View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. fix(bar): handle ipc connection errors.

    Try to use the default bar id (`bar-0`) if none is set.
    alebastr committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    2290fe1 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2021

  1. Configuration menu
    Copy the full SHA
    8fe42eb View commit details
    Browse the repository at this point in the history
  2. ci: increase FreeBSD VM memory to 2048MB

    Intermittent CI failures without any useful diagnostics could be caused
    by the OOM killer. 1024MB is not really enough to run 3 parallel jobs
    with a modern C++ compiler.
    alebastr committed Nov 24, 2021
    Configuration menu
    Copy the full SHA
    b4e1967 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2021

  1. Configuration menu
    Copy the full SHA
    4b5dc1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cf5ddb2 View commit details
    Browse the repository at this point in the history
  3. feat(bar): allow customization of bar modes

    Allow changing existing modes and adding new ones via `modes`
    configuration key.
    `modes` accepts a JSON object roughly described by the following type
    ```typescript
    type BarMode = {
        layer: 'bottom' | 'top' | 'overlay';
        exclusive: bool;
        passthrough: bool;
        visible: bool;
    };
    type BarModeList = {
        [name: string]: BarMode;
    };
    ```
    and will be merged with the default modes defined in `bar.cpp`.
    
    Note that with absence of other ways to set mode, only those defined in
    the `sway-bar(5)`[1] documentation could be used right now.
    
    [1]: https://github.com/swaywm/sway/blob/master/sway/sway-bar.5.scd
    alebastr committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    b6d0a4b View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2021

  1. Configuration menu
    Copy the full SHA
    05f7727 View commit details
    Browse the repository at this point in the history