From fea9e4d790aa6d63e690700ad16170a10ac42aec Mon Sep 17 00:00:00 2001 From: M1dgard Date: Thu, 10 May 2018 14:36:22 +0200 Subject: [PATCH] Let background script accept an argument --- i3/background.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i3/background.sh b/i3/background.sh index 11d6d92..e28acbd 100755 --- a/i3/background.sh +++ b/i3/background.sh @@ -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"