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

Extension Questions #1

Closed
webmastak opened this issue Oct 30, 2019 · 9 comments
Closed

Extension Questions #1

webmastak opened this issue Oct 30, 2019 · 9 comments

Comments

@webmastak
Copy link

webmastak commented Oct 30, 2019

I correctly understood that you can change the order of these icons?
https://i.imgur.com/DWyFMfK.png

Tell me your extension will work with a gnome shell 3.34?
You can show an example of what the ordering-override.keyfile file should be.

@webmastak webmastak changed the title A couple of questions Ordering Icons Oct 30, 2019
@webmastak webmastak changed the title Ordering Icons Extension work questions Oct 30, 2019
@webmastak webmastak changed the title Extension work questions Extension Questions Oct 30, 2019
@andia89
Copy link
Owner

andia89 commented Oct 30, 2019

Hello,

yes that's the idea. Should work with 3.34

My keyfile looks like that:

a11y=1
dropbox=2
freonMenu=3
diodonGnomeIndicator=4
remmina-icon=7
Caffeine=5
variety=6
vericold=9
TeamViewer=8
Franz1=10
unitymail=11
keyboard=12
dateMenu=13
aggregateMenu=14

activities=1
appMenu=2

but you will have to play with that because you need the correct name of the icons (in your picture I only see aggregateMenu and keyboard)...

You can find that out in lookingGlass (Alt+F2 "lg") in the evaluator with

Main.panel.statusArea which gives you the items, and then you need to find the _indicator.id for each icon

I will try to make that a bit more user friendly if possible!

@webmastak
Copy link
Author

webmastak commented Oct 30, 2019

Thank you for the quick and detailed answer.
You could not take a screenshot as I did? To make it easier to understand how all this will look.😃

@andia89
Copy link
Owner

andia89 commented Nov 4, 2019

sure :)

Here you go
Screenshot from 2019-11-04 16-24-19

This gives me a panel that looks like that:

Screenshot from 2019-11-04 16-24-45

There are a few custom icons (for programs that I made myself) but as you can see with for example dropbox, owncloud and insync they are ordered quite nicely :)

@viggy96
Copy link

viggy96 commented Nov 4, 2019

How exactly do I find the icon names for icons that are statusbar icons rather than icons from a gnome extension? Like I've got steam and nextcloud icons, and those aren't produced by an extension, but rather are appindicator icons created by the program itself. There isn't an 'extension.js' I can look in to get the icon name for those.

@webmastak
Copy link
Author

webmastak commented Nov 4, 2019

I do not know.

But for tray icons, I use TopIcons Plus and Minimize to Tray extensions.

@andia89
Copy link
Owner

andia89 commented Nov 5, 2019

I made a workaround to figure out how to figure out the proper names (last commit)

activate the extension open a terminal, and type journalctl /usr/bin/gnome-shell -f
then open any program that adds an indicator to the panel and you should see something like:

Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: activities 
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: appMenu
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: dateMenu
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: dwellClick
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: a11y
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: keyboard
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: aggregateMenu
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: system-monitor
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: Caffeine
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: diodonGnomeIndicator
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: Insync
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: ownCloud
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: unity-mail
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: remmina-icon
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: Franz1
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: adr
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: vericold
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: dropbox
Nov 05 11:48:45 andreas-office gnome-shell[18321]: Order application icons: TeamViewer

which are exactly the names you have to put in the file

If you don't specify the names in the file, they will be ordered alphabetically with the first ones to the left

@andia89
Copy link
Owner

andia89 commented Nov 5, 2019

see the updated readme for insctructions. It should be much easier now!

@andia89 andia89 closed this as completed Nov 5, 2019
@frost19k
Copy link

@andia89 Do I explicitly have to record every icon from the journalctl command in the keyfile?

Let's say, from your example, I only care that aggregateMenu is right-most then, moving left, I want Caffeine followed by ownCloud. I do not care about the order of any of the other icons.

@andia89
Copy link
Owner

andia89 commented Jul 27, 2021

@frost19k
you don't have to specifiy the rest, but then they will be ordered alphabetically and the order will always remain the same. so you can just specifiy the last ones and then the rest will be done by itself

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

4 participants