mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[macos] Remove the preview image after fzf is done
This commit is contained in:
@@ -76,6 +76,9 @@ function set_wallpaper() {
|
|||||||
|
|
||||||
wallpaper_path=$(find "$wallpaper_dir" \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.heic" \) | fzf --preview 'fzf-preview.sh {}' --height 40%)
|
wallpaper_path=$(find "$wallpaper_dir" \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.heic" \) | fzf --preview 'fzf-preview.sh {}' --height 40%)
|
||||||
|
|
||||||
|
# Clear fzf preview from the terminal
|
||||||
|
printf "\x1b_Ga=d,d=A\x1b\\"
|
||||||
|
|
||||||
if [ -z "$wallpaper_path" ]; then
|
if [ -z "$wallpaper_path" ]; then
|
||||||
echo "No wallpaper selected."
|
echo "No wallpaper selected."
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user