diff --git a/dotfiles/lib/bin/wallpaper.sh b/dotfiles/lib/bin/wallpaper.sh index 48e4fac2..8d28320b 100755 --- a/dotfiles/lib/bin/wallpaper.sh +++ b/dotfiles/lib/bin/wallpaper.sh @@ -1,3 +1,3 @@ #!/usr/bin/env zsh -wallpaper +wallpaper "$@" diff --git a/dotfiles/lib/shellenv/wallpaper.sh b/dotfiles/lib/shellenv/wallpaper.sh index f8df038c..4fee312b 100644 --- a/dotfiles/lib/shellenv/wallpaper.sh +++ b/dotfiles/lib/shellenv/wallpaper.sh @@ -5,7 +5,8 @@ random_paper() { } wallpaper() { - feh --bg-center $(random_paper) --bg-scale "$WALLPAPER_DIR"transparent1x1.png + local target_paper=${1:-"$(random_paper)"} + feh --bg-center $target_paper --bg-scale "$WALLPAPER_DIR"transparent1x1.png } wallpaper_timer() {