show-hide-nm-applet.sh 320 B

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