NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.21k stars 14.21k forks source link

Cbatticon has no icon #21731

Open ravloony opened 7 years ago

ravloony commented 7 years ago

Issue description

In my awesomewm tray, the cbatticon is visible, but uses the default "no icon available" icon.

I set my .config/gtk-3.0/settings.ini up with [Settings] gtk-fallback-icon-theme = Adwaita gtk-icon-theme-name = Paper

But this had no effect, except to use the "no icon available" icon from Paper

Steps to reproduce

Cbatticon is in my configuration.nix and is autostarted on login: services.xserver = { enable = true; windowManager.awesome.enable = true; windowManager.default = "awesome"; displayManager = { slim.defaultUser = "bobbles"; sessionCommands = '' ${pkgs.networkmanagerapplet}/bin/nm-applet & ${pkgs.cbatticon}/bin/cbatticon & ''; };

environment.systemPackages = with pkgs; [

...

cbatticon

...

];

Technical details

thufschmitt commented 7 years ago

What does running cbatticon from a terminal says ? On my machine, it complains about the "battery-low-ltr" (or "battery-low-charging-ltr" depending on wether my laptop is plugged or not) missing. A quick web search seems to indicate that those icons don't exist anywhere (but their equivalent without "-ltr" suffix do), so this is probably an upstream bug.

ravloony commented 7 years ago

I tried, but there was no output. I'll try tomorrow again (problem is on work computer), because I found this issue: https://github.com/valr/cbatticon/issues/13 which says to try with the debug flag -d. Maybe it will help.

ravloony commented 7 years ago

It says icon name: battery-full-charged. Maybe this is the issue.

mmahut commented 5 years ago

Are there any updates to this issue, please?

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
xinyifly commented 2 years ago

I can simply get the icon to be shown by adding package gnome3.adwaita-icon-theme referenced here .

monomycelium commented 1 year ago

I am using Waybar v0.9.22 on Sway WM 1.8.1, and I am also facing a similar problem, where a system tray icon is not visible. The debug information shows that the icon name is battery-good-symbolic, which is available in my current icon theme (/usr/share/icons/Adwaita/symbolic/legacy/battery-good-symbolic.svg).