wallpaper (809B)
1 #!/bin/sh 2 #hsetroot -fill ~/wallpapers/fall.jpg # single screen 3 #hsetroot -full ~/wallpapers/hackingtheloop_1920.jpg # single screen 4 #hsetroot -fill ~/wallpapers/polygon-art-17498.jpg 5 #hsetroot -fill ~/photos/wallpapers/current_wallpapers/overdeepenings-Edit-Edit.jpg 6 7 # statusfile="$HOME/.wallpaper" 8 # 9 # function get_random_wallpaper { 10 # wallpapers=($1/*.{jpg,JPG,jpeg,JPEG,png,PNG,tif,TIF,tiff,TIFF}) 11 # printf "%s\n" "${wallpapers[RANDOM % ${#wallpapers[@]}]}" 12 # #echo $wallpapers 13 # } 14 # 15 # function set_wallpaper { 16 # feh --bg-scale "$1" 17 # echo "$1" > $statusfile # written to ~/.fehbg 18 # } 19 # 20 # dir="$HOME/photos/wallpapers/google_earth/" 21 # wallpaper=$(get_random_wallpaper "$dir") 22 # set_wallpaper "$wallpaper" 23 24 xsetroot -solid "$(rg '\*\.background:' ~/.Xresources | awk '{ print $2 }')"