From a2a254ea6763f247c429e73c00575349860e36ba Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Sat, 12 Nov 2022 20:24:45 -0500 Subject: [PATCH] wallpaper: use a folder of wallpapers for multiple screens --- src/.local/bin/wallpaper.example | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/.local/bin/wallpaper.example b/src/.local/bin/wallpaper.example index 5c63a06..78a1c96 100644 --- a/src/.local/bin/wallpaper.example +++ b/src/.local/bin/wallpaper.example @@ -2,4 +2,15 @@ # Per host wallpaper configuration example -xwallpaper --output DP-2-1 --center med/pix/dow/ml.png --output DP-1 --center med/pix/dow/mr.png --output eDP-1 --center med/pix/dow/m.png +PREFIX="$HOME/med/wall" +if [ -z "$1" ]; then + WALL="coastline_black" +else + WALL="$1" +fi + +FOLDER="$PREFIX"/"$WALL" + +xwallpaper --output DP2-1 --center "$FOLDER"/l.jpg \ + --output DP1 --center "$FOLDER"/r.jpg \ + --output eDP1 --center "$FOLDER"/s.jpg