-
Notifications
You must be signed in to change notification settings - Fork 19
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
network-module.widget fails to show wifi icon at boot #262
Comments
P.S. This is what my ~/.config/sfwbar/network-module.widget looks like (it only differs from the upstream version by one line--the last one that implements LeftClick action):
|
The square with a smudge is a bit weird. If the module doesn't detect wifi, it displays a wired icon. Which is either specified by $NetworkWireIcon (if this variable is defined anywhere in your config) or As to the the wireless detection on startup, detecting isn't straightforward. Currently the network module monitors the netlink interface for IFLA_WIRELESS updates and update the ESSID whenever one is received. In addition, the essid is updated whenever a new default gateway is added to a routing table. The wireless state is then determined by whether an ESSID has been obtained. On startup, once your sfwbar is already running and wifi has started. Does your mahcine automatically connect to wifi (i.e. does your main internet connection goes through wifi) or do you still need to manually connect to it? |
Tipping that that is a wired (weird) network icon of some icon theme with
|
Hi LBCrion. I do not define this icon anywhere in my config. The icon being used is whatever is the default. If it helps, this problem did not occur on 1.0_beta15 on this same machine with same sfwbar configuration. It seems 1.0_beta16 is altering the default wired network icon in a strange way. I'm on Tiny Core Linux so nothing happens automatically :) My machine is a laptop that never has a wired connection. One of my startup jobs is sfwbar. Another is a script that connects to wifi. The two jobs run at boot close together. If we can't figure out what's being done to the default wired connection icon, I can try specifying full path to a different icon. |
The problem seems to be that 1.0_beta16 is using a png and stretching it in a way that makes it look strange. If I specify path to any .png file, I get different weird shapes. My guess is that 1.0_beta15 was either using a png without stretching it, or else it was defaulting to using a .svg file. Changing this line in ~/.config/sfwbar/network-module.widget:
to this:
makes the icon that shows up after boot be a recognizable wired network icon. I would still prefer to see a wifi icon, but this is fine and it's what I was used to when running 1.0_beta15. |
I'm on 1.0_beta16. sfwbar starts slightly before my wifi is fully connected. The bar only shows a square with a smear where the wifi icon is expected (notice the first icon):
The expected icon shows up if I run
pkill sfwbar; sleep 1; sfwbar &
after wifi is connected:Is there a way for the expected icon to show up without having to restart sfwbar?
The text was updated successfully, but these errors were encountered: