christopher-l / space-bar

GNOME Shell extension that shows workspaces buttons in top panel
178 stars 13 forks source link

[FEATURE REQUEST] ADD INDICATOR STYLE #34

Open JE-Amouel opened 8 months ago

JE-Amouel commented 8 months ago

hi, first of all, thank for your work, which make gnome look great again ;-), i do like the number of customization options that help user to feel free to make the extension look how he want, i generaly use lot of workspace on my computer to organize my work flow, but some time i prefere to quikly take a look on the number of my opened work space and in same time to ensure like i am currently on the right workspace for my task , that why i found the ratio style indicator quiet convinient for that, like "3/6' would means i am on the third workspace over 6 opened workspace, i found this indicator very helpfull because all information are in one place, and quikly accessible,

there it is, my demand, please add ratio type indicator in the indicator style menu, please thank you.

christopher-l commented 8 months ago

Hi @JE-Amouel, thanks for your request.

Disclaimer upfront: I'm not getting a lot of work done on the extension these days, so anything might take some time or not happen at all.

To understand your request right: Do you use the "current workspace name" indicator style and want to see the name of the workspace and at the same time its index + number of total workspaces? E.g.

1 / 3: Main

JE-Amouel commented 8 months ago

thank you I understand, I will try to be more precise,

  1. I use dash to panel as an extension to manage my panel instead of the original gnome panel, and my panel is stored on the left of my screen, which means that I would have difficulty using names to organize my workspace, especially if the name is long (names are truncated), so I prefer to use the decimal indicator where my spaces are ordered by number.
  2. Since my panel is lateral, and my screen is always horizontal, I prefer to optimize the space in the panel to have only useful and compact information, again the decimal indicators where the workspaces are organized into Decimal numbers are no longer very effective because for each new workspace the indicator bar becomes longer and longer. therefore I just wanted to suggest a new type of indicator which is both compact while being precise, like an indicator which will present the workspace in the form of a ratio, we would have on the right side the current workspace, a delimiter and on the right side the total active workspaces, format: [workspace] + [delimiter] + [active workspaces]

Example: 1) if I have 5 workspaces and I am on space number 2, with "/" as delimiter, then the indicator would display, 2/5 Screenshot_20240321-131420

2) if I have 3 workspaces and I am on workspace 3, with a delimiter ":", the indicator would display, 3:3 Screenshot_20240321-131420~2

RM:just the delimiter could be a character chosen by the user.

I hope that I would have been rather precise, THANKS!.

JE-Amouel commented 7 months ago

what do you think about?.

christopher-l commented 7 months ago

Hi, I implemented a feature to customize labels. To try it, download https://github.com/christopher-l/space-bar/raw/feat/total-ws-number/space-bar@luchrioh.shell-extension.zip and run the following command inside the download directory:

gnome-extensions install --force space-bar@luchrioh.shell-extension.zip

Does this work for you?

JE-Amouel commented 7 months ago

hi, can you give an example about how to use this new feature?. thanks.

christopher-l commented 7 months ago

There is a new sub-settings page on the "indicator style" option. When you enable custom label texts and use the string "{{number}} / {{total}}" for both labels, you should get the behavior you described.

After installing the updated extension you need to log out and back in again. Also GNOME 46 is required for this version.

JE-Amouel commented 7 months ago

look like it break the previous version, each time i try to install that version, i got the new customization menu, but after restarting gnome session, space bar doensnt work anymore, on the extension manager on the space bar line, an outdated alarm show up

Screenshot from 2024-04-23 22-31-57

Screenshot from 2024-04-23 22-33-56

christopher-l commented 7 months ago

Do you have GNOME 46?

JE-Amouel commented 7 months ago

currently i am on GNOME45

christopher-l commented 6 months ago

I updated the zip file to work on GNOME 45. Didn't test it though since my distribution is already on GNOME 46, but it should behave the same.

JE-Amouel commented 6 months ago

Thanks, that work fine, and sorry for the delay.

christopher-l commented 6 months ago

Nice to hear! I submitted the update for GNOME 46. Currently, I don't upload back ports of new features for older GNOME versions, but I'll leave the branch with the version for GNOME 45 up for now to not break the download link.

JE-Amouel commented 6 months ago

Nice to hear! I submitted the update for GNOME 46. Currently, I don't upload back ports of new features for older GNOME versions, but I'll leave the branch with the version for GNOME 45 up for now to not break the download link.

thanks i appreciate :pray: .