lf: if wallpaper command doesn't have input, set highlighted image

This commit is contained in:
2024-06-05 21:51:52 +03:00
parent 619328774c
commit db2028fb80

View File

@@ -17,8 +17,12 @@ cmd mkdir ${{
}} }}
cmd wallpaper ${{ cmd wallpaper ${{
p=$(pwd) if [[ "$1" == "" ]]; then
echo -n "$p/$1" > ~/.config/.wallpaper echo -n "$f" > ~/.config/.wallpaper
else
p=$(pwd)
echo -n "$p/$1" > ~/.config/.wallpaper
fi
}} }}
### Mappings ### Mappings
@@ -32,7 +36,3 @@ map d delete
map x cut map x cut
map R reload map R reload
map w ${{
echo -n "$f" > ~/.config/.wallpaper
}}