question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

name attribute of an i3bar block is not unique

See original GitHub issue

Bug Report

subj

Summary

Affected module: output.py

Description:

I had a look at the output of bumblebee-status (don’t ask me why, but for now I’ll just say that the reason was a bit more than just hypothetical) and I believe I spotted a place where it is not compliant to the i3bar protocol specification.

Quote from https://i3wm.org/docs/i3bar-protocol.html :

name and instance

Every block should have a unique name (string) entry so that it can be easily identified in scripts which process the output. i3bar completely ignores the name and instance fields. Make sure to also specify an instance (string) entry where appropriate. For example, the user can have multiple disk space blocks for multiple mount points.

First of all, there’s no instance attribute anywhere (in master branch, but there is in development branch). I’m not sure this part is a problem at all for the master branch, while bumblebee-status can use a generic module like spacer, the naming uniqueness is achieved through aliases.

The problem with the name attribute seems to be a real one. For example, a module with multiple widgets (think mpd) for example, will produce multiple blocks with same “mpd” name. Indeed, I can see

"name": module.id,

in output.py. And development branch seems to be suffering from same defect, it uses

"name": module.id(),

So every mpd related block for every prefix/suffix/full_text part of each mpd widget is named “mpd”.

This is very misleading for exactly the reason stated in the i3bar docs that I quoted above. Can we please get unique names like MODULENAME.WIDGETNAME/ID.PREFIX/FULL_TEXT/SUFFIX everywhere (in both master and development branches)? If possible, in master branch first.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 1, 2020

Icon support for the dzen2 bridge has been added and documented.

Thanks for your help @tobi-wan-kenobi

1reaction
ghostcommented, Feb 27, 2020

The dwm bridge has a brother now. It lives at https://github.com/somospocos/bumblebee-bridge-dzen2

It is already functional, but I am planning to try adding support for mouse events to this one, as well as support for transparently replacing prefixes with image icons, because dzen2 supports a couple of simple image formats.

Read more comments on GitHub >

github_iconTop Results From Across the Web

i3 User's Guide - i3 Tiling Window Manager
In the i3bar color configuration and i3bar status block color attribute you can then use colors in the RGBA format, i.e. the last...
Read more >
py3status Documentation
Using py3status, you can take control of your i3bar easily by: • using one of the available Modules shipped with py3status.
Read more >
Appendix A. Configuration Options - GitLab
See the lieer manual for documentation of settings not explicitly covered by this module. ... The unique name for THIS channel in THIS...
Read more >
i3 documentation — DevDocs
The position and size of a window are not managed automatically by i3, ... In the i3bar color configuration and i3bar status block...
Read more >
My Manjaro i3 setup - Tech Knowledge Base
Restart then open up (install if not already installed) qt5ct (run from terminal). ... sudo pacman -S i3-wm i3exit i3status py3status picom ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found