Updated wallpaper

- Use external script
- Set wallpaper on screenlayout changes
This commit is contained in:
Damien Broqua 2020-06-19 08:23:37 +02:00
parent c5f81634eb
commit a6d6198e0d
3 changed files with 16 additions and 1 deletions

View file

@ -66,3 +66,6 @@ case $nextconfig in
--output DP-1 --off
;;
esac
# Reset wallpaper
~/Bin/wallpaper.sh

11
Bin/wallpaper.sh Executable file
View file

@ -0,0 +1,11 @@
#! /bin/bash
# CONFIG
DIRECTORY="/home/dbroqua/Nextcloud/images/Wallpaper/Rotation"
# SCRIPT START HERE
SELECTED=`find ${DIRECTORY} -type f | shuf -n 1`
feh --bg-fill ${SELECTED}