show-hide-nm-applet.sh 201 B

123456
  1. #!/bin/sh
  2. # Hide nm-applet when network-manager is disabled
  3. nm_enabled=false
  4. [ -f /var/run/qubes-service/network-manager ] && nm_enabled=true
  5. gsettings set org.gnome.nm-applet show-applet $nm_enabled