diff options
| author | tslil clingman <> | 2020-10-19 10:33:54 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2020-10-19 10:35:56 -0400 |
| commit | 24fff7a3ceac1dfaa19518ba806f36a019e9273b (patch) | |
| tree | 69f619a5ca0b2c98366191c4111520b146fd2c34 /qubes-dwm-6.2/scripts/lock | |
| parent | ae0602777a5739796f4bf7f2f8d47e5dfede7af4 (diff) | |
Tracking my Qubes DWM configuration
Diffstat (limited to 'qubes-dwm-6.2/scripts/lock')
| -rwxr-xr-x | qubes-dwm-6.2/scripts/lock | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qubes-dwm-6.2/scripts/lock b/qubes-dwm-6.2/scripts/lock new file mode 100755 index 0000000..a44e59a --- /dev/null +++ b/qubes-dwm-6.2/scripts/lock @@ -0,0 +1,16 @@ +#!/bin/sh + +# Lock vault +( if [ -n "$(qvm-ls | grep vault-keys | grep Running)" ]; then + qvm-run vault-keys "tomb close all; tomb slam all" +fi; ) & + +# We want powersaving now that screen is locked +xset +dpms +sleep 1; xset dpms force off + +# No fork i3lock +i3lock -c 000000 -f -n + +# Clean up on exit +trap "xset -dpms" EXIT |
