4

My laptop is slow on refreshing the wifi networks on the list of available networks and I would like to edit in a button to refresh the list. Currently I know I can do this in the command line using this sudo iwlist wlan0 scan,

Currently it looks like this.:

[image1

Byte Commander
  • 107,489
Managor
  • 319

2 Answers2

2

You asked How to add 'refresh wifi networks' to my connections menu. The simple answer is "You can't". NetworkManager is a system indicator, which means it's written in C, and you have to get source code of this applet, edit it to suit your needs, and recompile.

By contrast, far simpler approach is to take iwlist wlan0 scan command, and bind it to a keyboard shortcut via System Settings -> Keyboard -> Shortcuts -> Custom menu. Note also that you don't need sudo for this to work.

Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497
2

If you wanted a point and click solution, you could install indicator-script-runner and create a "script" which uses the command iwlist wlan0 scan as given by @Serg or similar.

Bernmeister
  • 1,231