From 86205afec9797e99fe67d32db3177ee53e432ef9 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 28 Oct 2016 11:37:05 -0700 Subject: [PATCH] [Linux] Fix set wallpaper function --- dotfiles/lib/bin/wallpaper.sh | 2 +- dotfiles/lib/shellenv/wallpaper.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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() {