systemd-hold-active Enable a systemd service (Bluetooth, CUPS) and if you close a window disable it again.