dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 1bd05444c451f4613b1c8617816cec888c978073
parent 52cc460710d3adf24fb43232c8bcdde8248bff99
Author: hhvn <dev@hhvn.uk>
Date:   Mon, 13 Sep 2021 19:19:18 +0100

.s/b/wallp: support symlinks

Diffstat:
M.scripts/bin/wallp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.scripts/bin/wallp b/.scripts/bin/wallp @@ -9,11 +9,11 @@ [ -z $1 ] && echo "usage: wallp <dir|file[,<dir|file>...]> [left|right]" && exit 1 [ -z $2 ] && monitors=2 -files=$(find $(echo "$1" | tr ',' ' ') -type f | shuf | head -n ${monitors:-1}) +files=$(find -L $(echo "$1" | tr ',' ' ') -maxdepth 1 -type f | shuf | head -n ${monitors:-1}) [ "$2" = "right" ] && files=$(printf "%s\n%s\n" "$(awk '{print $1}' < $HOME/.cache/rfeh/prev)" "$files") [ "$2" = "left" ] && files=$(printf "%s\n%s\n" "$files" "$(awk '{print $2}' < $HOME/.cache/rfeh/prev)") mkdir -p $HOME/.cache/rfeh -echo $files > $HOME/.cache/rfeh/prev +echo $files | tee $HOME/.cache/rfeh/prev files=$(echo "$files" | tr " " "\n" | sed "s~^~--output OUTPUT --zoom ~g" | tr "\n" " ") for OUTPUT in $(xrandr --listactivemonitors | awk '$4 {print $4}') do