Updated wallpaper

- Use external script
- Set wallpaper on screenlayout changes
This commit is contained in:
dbroqua 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}

View file

@ -179,7 +179,7 @@ exec --no-startup-id i3-msg 'exec /usr/bin/spotify'
# WALLPAPER
#
exec --no-startup-id feh --bg-fill ~/.config/i3/wallpaper
exec --no-startup-id ~/Bin/wallpaper.sh
# -------------------------------------------------------------------------------------------------
# Default workspace layout
@ -199,6 +199,7 @@ bindsym Control+q kill
bindsym $mod+d exec dmenu_run -fn 'Droid Sans Mono-10'
bindsym Mod1+space exec "rofi -show combi"
# start a terminal
bindsym $mod+Return exec terminator