Change background hotkey

This commit is contained in:
agryphus 2023-10-30 01:38:05 -04:00
parent 5809bc4d3b
commit 257de525d9

View file

@ -44,6 +44,8 @@ map I :rename; cmd-home # at the very beginning
map <c-f> $lf -remote "send $id select \"$(fzf)\"" map <c-f> $lf -remote "send $id select \"$(fzf)\""
map F broot_jump map F broot_jump
map b set_bg
## COMMAND DEFINITIONS ## COMMAND DEFINITIONS
cmd touch %touch $1 && lf -remote "send $id load" && lf -remote "send $id select $1" cmd touch %touch $1 && lf -remote "send $id load" && lf -remote "send $id select $1"
@ -59,6 +61,12 @@ cmd delete ${{
[ $ans = "y" ] && rm -rf -- $fx [ $ans = "y" ] && rm -rf -- $fx
}} }}
cmd set_bg ${{
rm ~/.config/wallpaper
cp "$fx" ~/.config/wallpaper
feh --bg-fill --no-fehbg "$HOME/.config/wallpaper"
}}
cmd extract ${{ cmd extract ${{
clear; tput cup $(($(tput lines)/3)); tput bold clear; tput cup $(($(tput lines)/3)); tput bold
set -f set -f