Let background script accept an argument

This commit is contained in:
M1dgard 2018-05-10 14:36:22 +02:00
parent 7e9fde276c
commit fea9e4d790
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -1,3 +1,6 @@
#!/bin/bash
exec feh --bg-fill "$HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg"
background="$HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg"
[[ -n $1 ]] && background="$1"
exec feh --bg-fill "$background"