fredldotme / prime-indicator

PRIME Indicator - indicator applet for NVIDIA Optimus laptops
GNU General Public License v2.0
45 stars 31 forks source link

Gnome Shell support #10

Open steelbrain opened 9 years ago

steelbrain commented 9 years ago

The icon is display correctly in the notification area (the size is not good though). I am using the Gnome Shell Extension Top Icons to bring the appindicator icons to top. Everything works except the quick switch graphics. It says the X server will restart now and when i click it, nothing happens.

vstoykov commented 9 years ago

There is a pull request for that https://github.com/beidl/prime-indicator/pull/13 You can try installing it from my repo https://github.com/vstoykov/prime-indicator/tree/logout

stijnvc commented 9 years ago

This is what @steelbrain means with the wrong (too small) icon size: screenshot from 2015-03-15 02 14 47 (it's the second icon from the left). The icon also appears too small in the message tray (Gnome 3.12).

andrebrait commented 7 years ago

Does this still happen in Gnome > 3.18?

cirelli94 commented 7 years ago

No! Now in Gnome 3.20 is so http://i.imgur.com/bvJ7ScE.png Sure, it's not wonderful... But better than before

andrebrait commented 7 years ago

Would you try my fork? I don't think you're gonna run into this problem with it. Link: https://github.com/andrebrait/prime-indicator

cirelli94 commented 7 years ago

I installated your version, but it's the same http://i.imgur.com/eGkGRTA.png

andrebrait commented 7 years ago

Open the file src/primeindicator.py with any text editor you like.

In lines 61 and 65 replace them with the following two lines:

line 61, self.indicator.set_icon("intel") is to be replaced with self.indicator.set_icon(LIB_PATH + "intel.svg") line 65, self.indicator.set_icon("nvidia") is to be replaced with self.indicator.set_icon(LIB_PATH + "nvidia.svg")

Try to changing these things and then run the setup script again. Take care to start the replacement lines in the same columns as the ones they're replacing.

If this resolves your problems, i's more likely that it was originated by the icon theme you're using, since the indicator defaults to whatever your theme uses for Intel and NVIDIA icons. The icons that it comes with are grey and your icon is blue, which indicates GNOME's using the icon provided by the theme you're using. The changes I proposed here must force it to use my icons instead.

andrebrait commented 7 years ago

@cirelli94 I've just released version 1.0.0 of my fork, which has a ton of bugs fixed as well as some new features and new icons. Check it out: https://github.com/andrebrait/prime-indicator.

It should be working much better now and there are options to customize the color of the icons to suit your needs!

cirelli94 commented 7 years ago

@andrebrait Thanks! Installing now..

andrebrait commented 7 years ago

@cirelli94 Good to hear that! Did it work OK on GNOME?