Restore current wallpaper on quit
[khome.git] / home / bin / wallpaper_select
index 7832031..257fd9f 100755 (executable)
@@ -1,7 +1,6 @@
-#! /bin/sh
+#! /bin/bash
 
-set -e
+set -euo pipefail
 
-FAVS_FILE=~/fav-wallpapers.txt  # TODO Centralize in lib/vars
-
-khomenu -l 50 < "$FAVS_FILE" | awk '{sub("^" $1 " +", ""); print}' | xargs -I% feh --bg-scale '%'
+sort -k 2 "$FILE_WALLPAPER_FAVS" | khomenu -l 50 | awk '{sub("^" $1 " +", ""); print}' > "$FILE_WALLPAPER_CURR"
+~/.xlaunch.d/background
This page took 0.038366 seconds and 4 git commands to generate.