initial commit

This commit is contained in:
2026-02-14 21:23:19 +01:00
commit 05316253fa
29 changed files with 1156 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
# /usr/bin/blurlock
# take screenshot
scrot /tmp/screenshot.png
# blur it
convert /tmp/screenshot.png -blur 0x12 /tmp/screenshotblur.png
rm /tmp/screenshot.png
# lock the screen
i3lock -i /tmp/screenshotblur.png
# sleep 1 adds a small delay to prevent possible race conditions with suspend
sleep 1
xset dpms force off
exit 0

View File

@@ -0,0 +1,32 @@
#!/bin/sh
# /usr/bin/i3exit
case "$1" in
lock)
blurlock
;;
logout)
i3-msg exit
;;
switch_user)
dm-tool switch-to-greeter
;;
suspend)
blurlock && systemctl suspend
;;
hibernate)
blurlock && systemctl hibernate
;;
reboot)
systemctl reboot
;;
shutdown)
systemctl poweroff
;;
*)
echo "== ! i3exit: missing or invalid argument ! =="
echo "Try again with: lock | logout | switch_user | suspend | hibernate | reboot | shutdown"
exit 2
esac
exit 0