scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
495 stars 20 forks source link

Lacking crucial features #20

Open txtyash opened 1 year ago

txtyash commented 1 year ago
  1. Cannot to remove widgets
  2. Cannot reposition widgets
  3. Network manager applet not visible in the tray
  4. Cannot change bar position on screen(top/left/bottom/right)
scorpion-26 commented 1 year ago
  1. Cannot to remove widgets
  2. Cannot reposition widgets

I've had those features in mind for a long time, but it has been always hindered by 2 things:

If you really want to modify the order of things, you can make a plugin for that by copying src/Bar.cpp into e.g. example, adding DEFINE_PLUGIN(Create), modifying the order of the AddChild calls and then building it as a plugin as outlined in the README. Please note though, that you may need to rebuild/remodify the plugin with every gBar update.

  1. Network manager applet not visible in the tray

Do you mean nm-applet --indicator? That should be fixed with the commit I just pushed (18f3e123ed8e323b821fcbe8c44ca63011f8fd0c)

  1. Cannot change bar position on screen(top/left/bottom/right)

I'll be working on that.

txtyash commented 1 year ago
  • The configuration format is not designed for such a level of configuration and hacking it in would be relatively difficult. If you have any ideas for an example configuration format, which ideally abides by the [variable]: [value] format, let me know. (Major issue)

I don't know how this file format is parsed but if reordering the widgets is a problem then at least the user should have the ability to decide on which side of the statusbar they need the widget to be and if they even want it. This could be done using tables:

[left]
memory = false # widget invisible
time = true # widget visible

[center]
....
[right]
...
scorpion-26 commented 1 year ago

Apologies for the long delay. Anyways, point 4 is now implemented and merged.

txtyash commented 1 year ago

Changing the Location of gBar doesn't rotate the systray. It makes the bar look thicker: image

And also the icons appear rotated.

scorpion-26 commented 1 year ago

My bad, I forgot that. Should be fixed with f78758c. By the way, you should probably disable CenterTime with the bar on the side, because the bar tends to glitch out when there isn't enough space for it.

txtyash commented 1 year ago

also, the bluetooth menu isn't repositioned with the bar location

scorpion-26 commented 1 year ago

Should now work with c12bef2

scorpion-26 commented 1 year ago

Reordering symbols and widgets is now implemented. The three options WidgetsLeft, WidgetsCenter and WidgetsRight control the layout. If you find any margin/layout issues, please notify me.