From b628c4df212a9f99f2262c599ffba13d6f80cf84 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 29 Oct 2019 12:14:00 +0100 Subject: [PATCH] [ADD][SCRIPT] Background setter script --- scripts/set-background | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/set-background diff --git a/scripts/set-background b/scripts/set-background new file mode 100755 index 0000000..ad51e56 --- /dev/null +++ b/scripts/set-background @@ -0,0 +1,17 @@ +#!/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 + vertical) + feh --bg-fill "$main_bg" --bg-fill "$vert_bg";; + horizontal) + feh --bg-fill "$main_bg" --bg-fill "$horiz_bg";; +esac