You are not logged in.
Pages: 1
Hello, is there a plugin for the XFCE desktop or for the bar to activate/deactivate the network?
Unfortunately, I have not been able to find one so far.
Many thanks for help in advance.
Offline
What do you use to manage your network?
If its NetworkManager, you can use the nmcli utility to disable and enable your network card. For example:
$ nmcli dev
DEVICE TYPE STATE CONNECTION
wlan0 wifi connected xxxxxx
lo loopback connected (externally) lo
p2p-dev-wlan0 wifi-p2p disconnected --
enp0s31f6 ethernet unavailable --
..."wlan0" is my device.
nmcli dev down wlan0
...disables it and:
nmcli dev up wlan0
...enables it.
As for Xfce tools, you could use a launcher script, the genmon plugin, or the wavelan plugin.
For the wavelan plugin, change the value of the "Wifi Manager Command" to:
sh -c "[[ "$(nmcli dev status | grep ^wlan0 | awk '{print $3}')" == "disconnected" ]] && nmcli dev up wlan0 || nmcli dev down wlan0"
...change "wlan0" to your specific device name. That command is executed when you click on the plugin icon and will basically toggle the up/down status of your network device.
You can do something similar with a launcher or the genmon plugin.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Assuming NetworkManager and the applet in the system tray, right click on the icon and uncheck "Enable Networking" or "Enable Wifi".
Siduction
Debian Sid
Xfce 4.18
Offline
Assuming NetworkManager and the applet in the system tray, right click on the icon and uncheck "Enable Networking" or "Enable Wifi".
I might have a tendency to over-complicate things.....
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
eriefisher wrote:Assuming NetworkManager and the applet in the system tray, right click on the icon and uncheck "Enable Networking" or "Enable Wifi".
I might have a tendency to over-complicate things.....
Haha! But you understand the inner workings better than anybody.
Siduction
Debian Sid
Xfce 4.18
Offline
Thank you in advance for your comments. I'm a bit stressed at the moment.
I will have to take a closer look and then get back to you.
Offline
Pages: 1
[ Generated in 0.014 seconds, 9 queries executed - Memory usage: 535.74 KiB (Peak: 536.59 KiB) ]