show-hide-nm-applet.sh 245 B

12345678
  1. #!/bin/sh
  2. which nm-applet > /dev/null 2>&1 || exit 0
  3. # Hide nm-applet when network-manager is disabled
  4. nm_enabled=false
  5. [ -f /var/run/qubes-service/network-manager ] && nm_enabled=true
  6. gsettings set org.gnome.nm-applet show-applet $nm_enabled