walpaper script and i3 fixes
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
wallpapers_dir=~/.local/share/wallpapers
|
||||
finder="fzf --preview='feh {}'"
|
||||
|
||||
cd "$wallpapers_dir"
|
||||
|
||||
if [ -n "$TMUX" ] ; then
|
||||
#finder="fzf-tmux -p --preview='pistol {}'"
|
||||
finder="fzf-tmux -p"
|
||||
fi
|
||||
|
||||
# fzf selector
|
||||
if [ "$1" == '-s' ] ; then
|
||||
# follows links and omits the env file
|
||||
selection=$(find -L -type f -printf '%P\n' | $finder)
|
||||
if [ -n "$selection" ] ; then
|
||||
# didnt exit
|
||||
feh --bg-scale "$selection"
|
||||
fi
|
||||
fi
|
||||
|
||||
# feh slideshow selector
|
||||
if [ "$1" == '-p' ] ; then
|
||||
# follows links and omits the env file
|
||||
# find -L -type f -printf '%P\n' | feh -A "echo '%f';"
|
||||
echo "BROKEN">&2
|
||||
exit 1
|
||||
fi
|
After Width: | Height: | Size: 2.8 MiB |
After Width: | Height: | Size: 11 MiB |
After Width: | Height: | Size: 13 MiB |
After Width: | Height: | Size: 19 MiB |
After Width: | Height: | Size: 16 MiB |
After Width: | Height: | Size: 12 MiB |
After Width: | Height: | Size: 15 MiB |
After Width: | Height: | Size: 14 MiB |