diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f12d9c75..7e68dbd8 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -90,6 +90,14 @@ cmd copyto ${{ notify-send "📋 File(s) copied." "File(s) copies to $dest." }} +cmd chmod ${{ + clear; tput cup $(($(tput lines)/3)); tput bold + set -f + clear; printf "Mode: " + read -r mod + chmod $mod $fx +}} + cmd setbg "$1" cmd bulkrename $vidir @@ -102,6 +110,7 @@ map D delete map E extract map C copyto map M moveto +map chmod map push :mkdir map reload map set hidden! diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 3d9565fc..783c2152 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -20,7 +20,7 @@ do "f") convert -flop "$file" "$file" ;; "y") - echo -n "$file" | tr -d '\n' | xclip -selection clipboard && + echo "$file" | tr -d '\n' | xclip -selection clipboard && notify-send "$file copied to clipboard" & ;; "Y") readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&