2019-10-29 12:14:00 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# The main background with with horizontal orientation (16:9)
|
|
|
|
main_bg="$HOME/Pictures/wallpapers/starry-night-tree.png"
|
|
|
|
|
|
|
|
# The background for the second screen vertical orientation (9:16)
|
|
|
|
vert_bg="$HOME/Pictures/wallpapers/lonely-valley.jpg"
|
|
|
|
# The background for the second screen horizontal orientation (16:9)
|
|
|
|
horiz_bg="$HOME/Pictures/wallpapers/cyberpunk-street.png"
|
|
|
|
|
|
|
|
# When only the main screen is connected, the second background doesn't display
|
|
|
|
case "$1" in
|
2019-10-30 10:25:09 +01:00
|
|
|
single)
|
|
|
|
feh --bg-fill "$main_bg";;
|
2019-10-29 12:14:00 +01:00
|
|
|
vertical)
|
|
|
|
feh --bg-fill "$main_bg" --bg-fill "$vert_bg";;
|
|
|
|
horizontal)
|
|
|
|
feh --bg-fill "$main_bg" --bg-fill "$horiz_bg";;
|
|
|
|
esac
|