refine
This commit is contained in:
+1
-1
@@ -7,4 +7,4 @@ if [ -n "$active" ] && [ "$active" != "0x0" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
exec ~/.config/i3/scripts/lock-now
|
||||
exec ~/.config/i3/scripts/lock-now "$1"
|
||||
|
||||
+2
-1
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
||||
wall_dir="${1:?wallpaper directory required}"
|
||||
img=$(find "$wall_dir" -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}"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Rotate wallpaper every 20 minutes from /sync/images/wallpapers/
|
||||
wall_dir="${1:?wallpaper directory required}"
|
||||
while true; do
|
||||
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
||||
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
|
||||
[ -n "$img" ] && feh --bg-fill "$img"
|
||||
sleep 1200
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user