andrebrait / prime-indicator

PRIME Indicator Plus - enhanced indicator applet for NVIDIA Optimus laptops
GNU General Public License v3.0
69 stars 12 forks source link

Large panel icon in xfce4 #21

Open seancs opened 7 years ago

seancs commented 7 years ago

Using prime-indicator from the webupd8 ppa. The panel icons are too large. Changing the iconset in ~/.config/prime-indicator/prime-indicator.cfg has no effect.

This is on an xfce4 system (Xubuntu 16.10).

andrebrait commented 7 years ago

What did you change it to? Have you tried the color option? It's important to note that changing the config file will only affect the icons the next time the indicator is restarted (which can be triggered by logging out and then in again). Can you provide a screenshot?

seancs commented 7 years ago

I tried color, theme-default and symbolic by editting prime-indictor.cfg to remove the # comment mark for each method I tried. #iconset = color #iconset = theme-default iconset = symbolic

Logging out-in or quitting and restarting prime-indicator was done with each change. Selecting color gave me a blue oversized icon.

screenshot_prime_indicator_intel

I had the same problem with the original prime-indicator but worked around it by resizing the png icon files. I wasn't able to use resized png files with your prime-indicator. I even attempted to edit /usr/lib/prime-indicator/prime-indicator to use the png files.

andrebrait commented 7 years ago

I see. This shouldn't be happening... the weird part is that I'm running XFCE and the icon is presented ok.

Download the zip below and extract it to /usr/lib/prime-indicator/icons/, restart your computer and see if it works. You may need to extract the zip to somewhere first and then copy the files as root to the right folder (as in doing a sudo cp /path/to/where/you/extracted/* /usr/lib/prime-indicator/icons/).

small-icons.zip

seancs commented 7 years ago

The resized icons in the zip work well. It seems there's a two year old bug in xfce4-indicator-plugin that prevents it from resizing some icons, yet your system is fine. That is odd.

Thanks for the resolution and the program.

andrebrait commented 7 years ago

I'm running it on Arch Linux, so I think I'm a few minor versions ahead of Ubuntu. Maybe it was fixed upstream. Glad to hear it worked. I'll see what I can do to solve this as it might be affecting other XFCE users.

wjgeorge commented 7 years ago

apparently gnome-fallback does not autoresize, I'm running 16.04 and had to use the small icons.

using prime-indicator-plus from webupd8 ppa

andrebrait commented 7 years ago

Thanks for the feedback, @wjgeorge!

seifer08ms commented 6 years ago

I'm running it on Ubuntu 17.04 with gnome-fallback. I use the script to resize icons manually.

#!/bin/bash
cd /usr/lib/prime-indicator/icons
for n in $(ls *svg | sed 's/.svg//'); do inkscape -z -e $n.svg -w 24 -h 24 $n.svg; done
andrebrait commented 6 years ago

@seifer08ms Thanks for the input!

It's a nice script, but it requires the user have inkscape installed. I bet it's doable with just sed or something like that.

An SVG is pretty much a text file.