Giter Site home page Giter Site logo

felipegangrel / nm-hide-unmanaged-gnome-shell-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linniksa/nm-hide-unmanaged-gnome-shell-extension

0.0 1.0 0.0 8 KB

Simple extensions that hides unmanaged network devices from gnome network manager applet

JavaScript 100.00%

nm-hide-unmanaged-gnome-shell-extension's Introduction

nm-hide-unmanaged

This is simple gnome shell extension that hides all unmanaged network devices from the gnome status applet (and also an example of monkey patching in gnome shell). This is very useful when using a lot of virtual solutions such as VMware, docker, virtual box or other applications which create many network devices.

Install

To install the extension either clone or download this project and rename the folder to [email protected]. Move the [email protected] folder into ~/.local/share/gnome-shell/extensions/ and then restart gnome shell, logout and back in or restart your computer. After restarting enable the extension in the gnome-tweak-tool.

It is very important that the folder name is exactly the same as [email protected]. If the names do not match, the extension will not load properly.

Network config

This extension only hides unmanaged network devices. To hide unwanted network devices mark them as unmanaged in the NetworkManager config. This config can be found at /etc/NetworkManager/NetworkManager.conf. To mark a network device as unmanaged add either the interface name or mac address in the config as indicated below.

[keyfile]
unmanaged-devices=interface-name:vmnet1,interface-name:vmnet8,mac:00:19:e0:57:86:af

Wild cards are also allowed

[keyfile]
unmanaged-devices=interface-name:vmnet*,mac:00:19:e0:57:86:*

This is example of a complete /etc/NetworkManager/NetworkManager.conf:

[main]
plugins=keyfile

[keyfile]
# VMWare
unmanaged-devices=interface-name:vmnet*

# Virtualbox
unmanaged-devices=interface-name:vboxnet*

# Docker
unmanaged-devices=interface-name:docker*

Don't forget to reboot to apply all changes

nm-hide-unmanaged-gnome-shell-extension's People

Contributors

linniksa avatar borntogrill avatar laurento avatar validatedev avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.