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

start-minimized breaks my statusbar #1011

Open
jonasbadstuebner opened this issue Feb 28, 2024 · 3 comments
Open

start-minimized breaks my statusbar #1011

jonasbadstuebner opened this issue Feb 28, 2024 · 3 comments

Comments

@jonasbadstuebner
Copy link
Contributor

Bug Report

Description

Affected module: At least nic.
Version used: latest git

How to reproduce

Set something like

[core]
modules = nic
[module-parameters]
nic.start-minimized = True

and you should get an error like
IndexError: list index out of range at blocks.extend(self.separator_block(module, module.widgets()[0]))

I tried to fix it, but when I added a check for it, my statusbar has a triangle that I cannot click or anything.

TL;DR: I tried to fix it, but couldn't easily.

grafik

It's not very important for me, I just thought it would work.

@tobi-wan-kenobi
Copy link
Owner

Which version of bumblebee-status are you using?

With current git, I cannot reproduce this behaviour:

$ cat ~/.config/bumblebee-status.conf 
[core]
modules = nic
[module-parameters]
nic.start-minimized = True
bumblebee-status on  main via 🐍 v3.12.1 
$ ./bumblebee-status            
{"version": 1, "click_events": true}
[
[{"full_text": " lan enp1s0f1 down ", "color": "#aabbcc", "name": "nic", "instance": "nic::0", "_raw": "enp1s0f1 down", "_suffix": " ", "_prefix": " lan ", "align": null}],
[{"full_text": " lan enp1s0f1 down ", "color": "#aabbcc", "name": "nic", "instance": "nic::0", "_raw": "enp1s0f1 down", "_suffix": " ", "_prefix": " lan ", "align": null}],

@jonasbadstuebner
Copy link
Contributor Author

Could you try

[core]
modules = eth:nic,wifi:nic
[module-parameters]
eth.include = eth0
eth.start-minimized = True

wifi.include = wlan0
wifi.start-minimized = True

please?

@jonasbadstuebner
Copy link
Contributor Author

My config is more compley, I tried to give a minimal example and you are right, the one I provided first does work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants