about summary refs log tree commit diff
path: root/.local/bin/lock-screen
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2026-02-11 11:42:58 +0000
committervenomade <venomade@venomade.com>2026-02-11 11:42:58 +0000
commit0bd150185551b6d8835d022c15a5f6e832d51113 (patch)
tree10bf3f3443df49a44eb47b328b73b7e76b0a4924 /.local/bin/lock-screen
parent8d688d1107c46b6dfdcaf02fa5c9c4c8a4640e65 (diff)
Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
Diffstat (limited to '.local/bin/lock-screen')
-rwxr-xr-x.local/bin/lock-screen13
1 files changed, 13 insertions, 0 deletions
diff --git a/.local/bin/lock-screen b/.local/bin/lock-screen
new file mode 100755
index 0000000..4307c9a
--- /dev/null
+++ b/.local/bin/lock-screen
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+if [[ $1 =~ ^[0-9]+$ ]]; then
+    SLEEP_DURATION=$1
+else
+    SLEEP_DURATION=10
+fi
+
+grim /tmp/lockscreen-0.png
+magick /tmp/lockscreen-0.png -scale 10% -blur 0x1 -resize 1000% /tmp/lockscreen.png
+swaylock -i /tmp/lockscreen.png &
+sleep $SLEEP_DURATION
+systemctl sleep