Is it possible to add nm-applet in swaybar if yes how?. If no, is it going to be implemented?.
Thank You.
Currently only icons using StatusNotifierItem are supported. Support for legacy Xembed icons will come later.
Can you please suggest some replacement that can be placed over swaybar. For networks and bluetooth.
Beats me. I would just use nmtui from a terminal.
Re-visiting this, I've installed nm-applet using AUR network-manager-applet-indicator package and start it with nm-applet --indicator, the icon shows! However, clicking it doesn't do anything. Notification works as well.
@walterhuangio See https://github.com/swaywm/sway/pull/3249
For future seekers, nm-applet's connection editor does work under sway just fine if you directly execute nm-connection-editor.
nm-connection-editor - a graphical user interface,
network-manager-applet - a system tray applet (nm-applet).
It is possible to use nm-connection-editor only (without network-manager-applet).
Beats me. I would just use nmtui from a terminal.
nm-applet's advantage is that it makes discovering and connecting to WPA2 Enterprise networks quite easy. nmtui does not allow discovering networks as far as I know.
currently under Arch just nm-applet doesn't do anything and nm-applet --indicator crashes:
(process:4139): nm-applet-ERROR **: 10:48:19.442: Error: --indicator requested but indicator support not available
[1] 4139 trace trap (core dumped) nm-applet --indicator
nmtui it is I guess..
nm-applet's connection editor does work under sway just fine if you directly execute nm-connection-editor
I couldn't figure this UI out for the life of me.
nmtui does not allow discovering networks
It does. Under the "Activate a connection" menu it show's new connections. Asks for password and everything. But I must say it doesn't show all connections all the time. Also It doesn't seem to always ask for a password (though obviously it will then not connect). Ahh.. I miss nm-applet.
Usually I'd default to wifi-menu actually. But for some reason this wasn't able to connect to my new wifi.
Just found this issue via Google and wanted to leave my 2ct:
@KristerV Are you using Arch? If so, you need to use network-manager-applet-indicator, also see Wiki from the AUR as AppIndicator support is not compiled into the main package. (As @walterhdev pointed out)
An alternative I currently favor is using networkmanager_dmenu which can also be found in the AUR with bemenu as backend. To do this, just place this config in ~/.config/networkmanager-dmenu/config.ini:
[dmenu]
dmenu_command = /usr/bin/bemenu
for more options see the example config in /usr/share/doc/networkmanager-dmenu-git/config.ini.example
It supports the most important stuff like discovering and connecting to new networks, opening the connection manager, connecting to vpns, setting up new connections, etc
I wonder why nm-applet --indicator just exists without any icon or error message for me. I worked on nm-applet appindicator improvements in the past, long ago when I was using Enlightenment for a short period of time. It used to work well. No need for Xembed cruft any more. I tried the one in openSUSE Tumbleweed and it is apparently built with appindicator support.
For everyone who bumps into the same issue, nm-applet quits quietly when it's already running. The solution was:
killall nm-applet
nm-applet --indicator
However, it doesn't open the menu for some reason. Now the icon is there. I'm happy using nm-cli for all connectivity most of the time but it would be nice to have a complete support. Does swaybar implement the appindicator menu or not?
@pavlix The menu isn't implemented yet: #5161
You should also find out where it is started without indicator support and change that.
Just found this issue via Google and wanted to leave my 2ct:
@KristerV Are you using Arch? If so, you need to use network-manager-applet-indicator, also see Wiki from the AUR as AppIndicator support is not compiled into the main package. (As @walterhdev pointed out)
An alternative I currently favor is using
networkmanager_dmenuwhich can also be found in the AUR withbemenuas backend. To do this, just place this config in~/.config/networkmanager-dmenu/config.ini:[dmenu] dmenu_command = /usr/bin/bemenufor more options see the example config in
/usr/share/doc/networkmanager-dmenu-git/config.ini.exampleIt supports the most important stuff like discovering and connecting to new networks, opening the connection manager, connecting to vpns, setting up new connections, etc
Curiously this package appears to have been removed from the AUR.
Ah, looks like the default network-manager-applet package on Arch linux now supports appindicators.
Source: https://lists.archlinux.org/pipermail/aur-requests/2020-June/041394.html
Ah, looks like the default network-manager-applet package on Arch linux now supports appindicators.
Source: https://lists.archlinux.org/pipermail/aur-requests/2020-June/041394.html
Does that mean it will work with sway? And if yes, how do I implement it. Because currently I only use nm-applet --indicator to show network status on swaybar.
Most helpful comment
For future seekers, nm-applet's connection editor does work under sway just fine if you directly execute
nm-connection-editor.