From b98e05ba63f2e108df634b4d9f9e5530769c6b80 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 10 Jun 2021 18:58:52 +0200 Subject: Added scripts and readme --- xwallpaper-random-notify | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 xwallpaper-random-notify (limited to 'xwallpaper-random-notify') diff --git a/xwallpaper-random-notify b/xwallpaper-random-notify new file mode 100755 index 0000000..d0d1fbe --- /dev/null +++ b/xwallpaper-random-notify @@ -0,0 +1,13 @@ +#!/bin/sh + +# Set a random background from the wallpapers folder and notify about it +# Requires: xwallpaper (or feh), notify-send (optional) + +folder=~/Pictures/wallpapers +pic=$(ls $folder | sort -R | head -1) + +# Alternative: use feh +#feh --bg-fill --no-fehbg $folder/$pic +xwallpaper --zoom $folder/$pic + +notify-send "Background of the day" $pic -- cgit v1.3