Created
August 10, 2017 13:21
-
-
Save dkopecek/0d4bcad009354483d664c21f56a82804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
POLICY_UNLOCKED=apply-policy | |
POLICY_LOCKED=reject | |
revert() { | |
usbguard set-parameter InsertedDevicePolicy $POLICY_UNLOCKED | |
} | |
trap revert SIGHUP SIGINT SIGTERM | |
usbguard set-parameter InsertedDevicePolicy $POLICY_LOCKED | |
i3lock -n | |
revert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment