summaryrefslogtreecommitdiff
path: root/home/.selfconfigs/sway
diff options
context:
space:
mode:
Diffstat (limited to 'home/.selfconfigs/sway')
-rwxr-xr-xhome/.selfconfigs/sway/lock_with_overlay6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/.selfconfigs/sway/lock_with_overlay b/home/.selfconfigs/sway/lock_with_overlay
new file mode 100755
index 0000000..373e2cc
--- /dev/null
+++ b/home/.selfconfigs/sway/lock_with_overlay
@@ -0,0 +1,6 @@
+#!/usr/bin/bash -eu
+
+grim /tmp/overlayed_screenshot.png
+magick /tmp/overlayed_screenshot.png ~/.selfconfigs/sway/lock_overlay.png -composite /tmp/overlayed_screenshot.png
+
+exec swaylock --image /tmp/overlayed_screenshot.png