From 8bfcb106c032e5a7e947ce76a6ac48eda344f560 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 18 Feb 2019 12:30:41 +0100 Subject: [PATCH 1/2] style: comment about workspace hover effect --- resources/style.css | 1 + src/modules/pulseaudio.cpp | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/resources/style.css b/resources/style.css index 5f5af87..ed36257 100644 --- a/resources/style.css +++ b/resources/style.css @@ -12,6 +12,7 @@ window#waybar { color: white; } +/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ #workspaces button { padding: 0 5px; background: transparent; diff --git a/src/modules/pulseaudio.cpp b/src/modules/pulseaudio.cpp index 11c341c..4f7f8c2 100644 --- a/src/modules/pulseaudio.cpp +++ b/src/modules/pulseaudio.cpp @@ -202,13 +202,15 @@ auto waybar::modules::Pulseaudio::update() -> void format = config_["format-muted"].isString() ? config_["format-muted"].asString() : format; label_.get_style_context()->add_class("muted"); - } else if (port_name_.find("a2dp_sink") != std::string::npos) { - format = config_["format-bluetooth"].isString() - ? config_["format-bluetooth"].asString() : format; - label_.get_style_context()->add_class("bluetooth"); } else { label_.get_style_context()->remove_class("muted"); - label_.get_style_context()->remove_class("bluetooth"); + if (port_name_.find("a2dp_sink") != std::string::npos) { + format = config_["format-bluetooth"].isString() + ? config_["format-bluetooth"].asString() : format; + label_.get_style_context()->add_class("bluetooth"); + } else { + label_.get_style_context()->remove_class("bluetooth"); + } } label_.set_markup( fmt::format(format, fmt::arg("volume", volume_), From bef8520937f794b4751a959a9d5f9b40139793a6 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 18 Feb 2019 12:33:40 +0100 Subject: [PATCH 2/2] Remove opensuse ci for now --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1d9e437..3dc9258 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ services: env: - distro: debian - distro: archlinux - - distro: opensuse + # - distro: opensuse before_install: - docker pull alexays/waybar:${distro}