commit 0c8624f3e26420b38bb363409f20e76c11d37e5a
parent 41b386282515902a8e419823e65b072169c93b47
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 4 Mar 2019 14:41:02 +0100
Set wallpaper color to black in Xresources
Diffstat:
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/links/bin/wallpaper.sh b/links/bin/wallpaper.sh
@@ -3,19 +3,22 @@
#hsetroot -full ~/wallpapers/hackingtheloop_1920.jpg # single screen
#hsetroot -fill ~/wallpapers/polygon-art-17498.jpg
#hsetroot -fill ~/photos/wallpapers/current_wallpapers/overdeepenings-Edit-Edit.jpg
-statusfile="$HOME/.wallpaper"
-function get_random_wallpaper {
- wallpapers=($1/*.{jpg,JPG,jpeg,JPEG,png,PNG,tif,TIF,tiff,TIFF})
- printf "%s\n" "${wallpapers[RANDOM % ${#wallpapers[@]}]}"
- #echo $wallpapers
-}
+# statusfile="$HOME/.wallpaper"
+#
+# function get_random_wallpaper {
+# wallpapers=($1/*.{jpg,JPG,jpeg,JPEG,png,PNG,tif,TIF,tiff,TIFF})
+# printf "%s\n" "${wallpapers[RANDOM % ${#wallpapers[@]}]}"
+# #echo $wallpapers
+# }
+#
+# function set_wallpaper {
+# feh --bg-scale "$1"
+# echo "$1" > $statusfile # written to ~/.fehbg
+# }
+#
+# dir="$HOME/photos/wallpapers/google_earth/"
+# wallpaper=$(get_random_wallpaper "$dir")
+# set_wallpaper "$wallpaper"
-function set_wallpaper {
- feh --bg-scale "$1"
- echo "$1" > $statusfile # written to ~/.fehbg
-}
-
-dir="$HOME/photos/wallpapers/google_earth/"
-wallpaper=$(get_random_wallpaper "$dir")
-set_wallpaper "$wallpaper"
+xsetroot -solid "$(rg '\*color0:' ~/.Xresources | awk '{ print $2 }')"