wp (302B)
1 #!/bin/sh 2 3 # wp -- a wallpaper switcher 4 # Copyright 2022 Matthias Balk 5 6 # requires `feh` 7 8 set -e 9 10 if [ $# -lt 1 ]; then 11 plugin="default" 12 else 13 plugin="$@" 14 fi 15 16 plugin_dir="$(dirname `readlink -f $0`)/plugins" 17 img="$("$plugin_dir/$plugin")" 18 if [ -n "$img" ]; then 19 feh --no-fehbg --bg-fill "$img" 20 fi