core-agent-linux/network/show-hide-nm-applet.sh
2017-09-30 04:43:04 +02:00

12 lines
320 B
Bash

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