~bitraid

Recent activity

Re: [PATCH swayrbar] Don't crash on empty wpctl output 3 months ago

From bitraid to ~tsdh/public-inbox

I've only seen this on system startup, where the server isn't ready yet. There is a message on stderr, and stdout is empty.

On Saturday, October 5th, 2024 at 10:27, Tassilo Horn <tsdh@gnu.org> wrote:

> bitraid bitraid@protonmail.ch writes:
> 
> 
> Applied, thanks! Just for me to know how serious that issue is: under
> what conditions does wpctl give empty output?
> 
> Bye,
> Tassilo
> 
> > ---

[PATCH swayrbar] Don't crash on empty wpctl output 3 months ago

From bitraid to ~tsdh/public-inbox

---
 swayrbar/src/module/wpctl.rs | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/swayrbar/src/module/wpctl.rs b/swayrbar/src/module/wpctl.rs
index be9f4f4..b51b268 100644
--- a/swayrbar/src/module/wpctl.rs
+++ b/swayrbar/src/module/wpctl.rs
@@ -52,10 +52,12 @@ fn run_wpctl(args: &[&str]) -> String {
fn get_volume(device: &str) -> (u8, bool) {
    let output = run_wpctl(&["get-volume", device]);
    let mut volume = String::new();
    VOLUME_RX
        .captures(&output)
[message trimmed]

[PATCH swayrbar v2] Add pipewire (wpctl) module 3 months ago

From bitraid to ~tsdh/public-inbox

---
 README.md                    |  30 +++++-
 swayrbar/src/bar.rs          |   1 +
 swayrbar/src/module.rs       |   1 +
 swayrbar/src/module/wpctl.rs | 204 +++++++++++++++++++++++++++++++++++
 4 files changed, 231 insertions(+), 5 deletions(-)
 create mode 100644 swayrbar/src/module/wpctl.rs

diff --git a/README.md b/README.md
index 1321bc2..1dc6e84 100644
--- a/README.md
+++ b/README.md
@@ -212,7 +212,7 @@ These commands change the layout of the current workspace.
  between a tabbed and tiled layout, i.e., it calls `shuffle-tile-workspace` if
[message trimmed]

[PATCH swayrbar] Add pipewire (wpctl) module 3 months ago

From bitraid to ~tsdh/public-inbox

---
 swayrbar/src/bar.rs          |   1 +
 swayrbar/src/module.rs       |   1 +
 swayrbar/src/module/wpctl.rs | 203 +++++++++++++++++++++++++++++++++++
 3 files changed, 205 insertions(+)
 create mode 100644 swayrbar/src/module/wpctl.rs

diff --git a/swayrbar/src/bar.rs b/swayrbar/src/bar.rs
index 8321c3b..b62053b 100644
--- a/swayrbar/src/bar.rs
+++ b/swayrbar/src/bar.rs
@@ -97,6 +97,7 @@ fn create_modules(config: config::Config) -> Vec<Box<dyn BarModuleFn>> {
            "battery" => module::battery::create(mc),
            "date" => module::date::create(mc),
[message trimmed]