Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

41 lines
1.2 KiB

#!/usr/bin/env fish
# Find a random image
set image (fdfind -e jpg -e jpeg -e png -e webp . /mnt/linux-files-2/Pictures/hevin | shuf -n 1)
# Create blurred lock image
convert "$image" -resize 1920x1080^ -gravity center -extent 1920x1080 /tmp/lock.png
# Lock with i3lock-color
i3lock -n -i /tmp/lock.png
#!/usr/bin/env fish
# Directory containing your wallpapers
#set WALLPAPER_DIR ~/Pictures/Screensaver
## Get a list of monitors
#set MONITORS (xrandr --listmonitors | grep -v 'Monitors:' | awk '{print $4}')
## Generate blurred lock images for each monitor
#for monitor in $MONITORS
## Pick a random image for this monitor
#set IMAGE (fdfind -e jpg -e jpeg -e png -e webp . $WALLPAPER_DIR | shuf -n 1)
## Generate a blurred version at /tmp/lock-$monitor.png
#convert "$IMAGE" \
#-resize 1920x1080^ \
#-gravity center \
#-extent 1920x1080 \
#-blur 0x8 \
#"/tmp/lock-$monitor.png"
#end
## Build i3lock command for each monitor
#set LOCK_CMD "i3lock-color -n"
#for monitor in $MONITORS
#set LOCK_CMD "$LOCK_CMD --image=/tmp/lock-$monitor.png --screen=$monitor --ignore-empty-password"
#end
## Execute the lock command
#eval $LOCK_CMD