1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Fix syntax error & update fehbg script (#89)

This commit is contained in:
Jakub Žádník 2021-08-27 13:58:46 +03:00 committed by GitHub
parent c1481973ca
commit 7df927be3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
# xinitrc.
#
# Dependencies;
# * nu version >=0.32.0 (requires new syntax introduced in 0.32.0)
# * nu version >=0.32.0 (tested on 0.36.0)
# * feh
# * imagemagick
@ -58,7 +58,7 @@ let img_name = (list_images $img_dir | select_random | get name)
# Resize the image to the monitor height, draw the caption and save it
let res_str = (build-string 'x' $resolution_y)
convert -resize $res_str -pointsize 15 -fill "rgb\(255,200,150\)" -draw (draw_str $img_name) $img_name $tmp_image
convert -resize $res_str -pointsize 15 -fill 'rgb(255,200,150)' -draw (draw_str $img_name) $img_name $tmp_image
# Set the created image as a background
feh --no-fehbg --bg-max $tmp_image