change manythings

This commit is contained in:
2026-06-25 11:33:22 +07:00
parent b9e75b0ff7
commit 3ed4afab73
29 changed files with 1745 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
tmp=/tmp/lockscreen.png
res=$(xrandr --current | awk '/ connected/ {getline; print $1; exit}')
: "${res:=1920x1080}"
if [ -n "$img" ] && convert "$img" -resize "${res}^" -gravity Center -extent "$res" "$tmp" 2>/dev/null; then
exec i3lock -i "$tmp" --nofork
else
exec i3lock -c 000000 --nofork
fi