Just wrote a little “godark” script that disables networking for the active qube. Maybe this can be used as an inspiration on how and what one can do with this.
# Go dark script
# Disables networking for the qube in focus and creates a notification
# to confirm
# Get active window
TARGET=`xprop _QUBES_VMNAME -id $ID|cut -f2 -d\"`
if [[ "$TARGET" == "_QUBES_VMNAME: not found." ]]; then
notify-send "Could not get active qube to go dark"
# Disable networking
qvm-prefs --set "$TARGET" netvm none
# Check and notify user
NETVM=$(qvm-prefs --get "$TARGET" netvm)
if [[ "$NETVM" == "" ]]; then
notify-send "Qube $TARGET went dark"
notify-send -u critical "Qube $TARGET was UNABLE to go dark"
it is executable (
chmod +x godark)
And i set a keyboard shortcut in xfcemenu → System Tools → keyboard
ctrl+b with the command
May contain bugs, just see this as a quick n dirty example. For me this is working fine tho.