diff options
Diffstat (limited to 'xwallpaper-random-notify')
| -rwxr-xr-x | xwallpaper-random-notify | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xwallpaper-random-notify b/xwallpaper-random-notify index d0d1fbe..ac1898d 100755 --- a/xwallpaper-random-notify +++ b/xwallpaper-random-notify | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | # Set a random background from the wallpapers folder and notify about it | 3 | # Set a random background from the wallpapers folder and notify about it |
| 4 | # Requires: xwallpaper (or feh), notify-send (optional) | 4 | # Requires: xwallpaper (or feh), notify-send or similar (optional) |
| 5 | |||
| 6 | #notify=notify-send | ||
| 7 | notify=herbe | ||
| 5 | 8 | ||
| 6 | folder=~/Pictures/wallpapers | 9 | folder=~/Pictures/wallpapers |
| 7 | pic=$(ls $folder | sort -R | head -1) | 10 | pic=$(ls $folder | sort -R | head -1) |
| @@ -10,4 +13,4 @@ pic=$(ls $folder | sort -R | head -1) | |||
| 10 | #feh --bg-fill --no-fehbg $folder/$pic | 13 | #feh --bg-fill --no-fehbg $folder/$pic |
| 11 | xwallpaper --zoom $folder/$pic | 14 | xwallpaper --zoom $folder/$pic |
| 12 | 15 | ||
| 13 | notify-send "Background of the day" $pic | 16 | $notify "Background of the day" $pic |
