Skip to content

Commit

Permalink
feat(swaybar-ipc): handle mode update
Browse files Browse the repository at this point in the history
  • Loading branch information
alebastr committed Nov 20, 2021
1 parent 3b5ab57 commit 978d7db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/sway/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ void BarIpcClient::onIpcEvent(const struct Ipc::ipc_response& res) {

void BarIpcClient::onConfigUpdate(const swaybar_config& config) {
spdlog::info("config update: {} {} {}", config.id, config.mode, config.position);
// TODO: pass config to bars
bar_config_ = config;
bar_.setMode(bar_config_.mode);
}

void BarIpcClient::onVisibilityUpdate(bool visible_by_modifier) {
Expand Down

0 comments on commit 978d7db

Please sign in to comment.