show-hide-nm-applet.sh 279 B

12345678910
  1. #!/bin/sh
  2. type nm-applet > /dev/null 2>&1 || exit 0
  3. # Source Qubes library.
  4. . /usr/lib/qubes/init/functions
  5. # Hide nm-applet when network-manager is disabled
  6. qsvc network-manager && nm_enabled=true || nm_enabled=false
  7. gsettings set org.gnome.nm-applet show-applet $nm_enabled