Skip to content

Commit

Permalink
Fix syntax error & update fehbg script (nushell#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubouch committed Aug 27, 2021
1 parent c148197 commit 7df927b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fehbg.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 7df927b

Please sign in to comment.