From 60052659b98832c78c902e4f27ecee2663d8e913 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 6 May 2026 08:30:49 +0200 Subject: Added scripts --- scripts/xwallpaper-random-notify | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/xwallpaper-random-notify (limited to 'scripts/xwallpaper-random-notify') diff --git a/scripts/xwallpaper-random-notify b/scripts/xwallpaper-random-notify new file mode 100755 index 0000000..1d9e2bf --- /dev/null +++ b/scripts/xwallpaper-random-notify @@ -0,0 +1,17 @@ +#!/bin/sh + +# Set a random background from the wallpapers folder and notify about it +# Requires: xwallpaper (or feh), notify-send or similar (optional) + +#notify=notify-send +notify="notify push" + +folder=~/pictures/wallpapers +pic=$(ls $folder | sort -R | head -1) + +# Alternative: use feh +#feh --bg-fill --no-fehbg "$folder"/"$pic" +xwallpaper --zoom "$folder"/"$pic" + +# Uncomment to notify +#$notify "Background of the day" "$pic" -- cgit v1.3