Hevin screensaver on one monitor
This commit is contained in:
41
scripts/executable_dual-monitor-slideshow
Executable file
41
scripts/executable_dual-monitor-slideshow
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/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
|
||||
@@ -32,7 +32,8 @@ elif (( $(echo "$price < 100" | bc -l) )); then
|
||||
echo "$price" | tr -d '.' | awk '{print substr($0, 1, 3)}'
|
||||
elif (( $(echo "$price < 1000" | bc -l) )); then
|
||||
echo "$price" | numfmt --grouping | cut -c -3
|
||||
#elif (( $(echo "$price < 10000" | bc -l) )); then
|
||||
elif (( $(echo "$price < 10000" | bc -l) )); then
|
||||
echo "$price" | numfmt --grouping | cut -c -4
|
||||
elif (( $(echo "$price < 100000" | bc -l) )); then
|
||||
echo "$price" | cut -c -3
|
||||
elif (( $(echo "$price > 100000" | bc -l) )); then
|
||||
|
||||
Reference in New Issue
Block a user