config. nsxiv

This commit is contained in:
rob 2024-04-15 23:29:04 -04:00
parent 3ebdfb0ee6
commit 77b549cccb

15
nsxiv/exec/key-handler Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
while read file
do
wall="${file##*/}"
case "$1" in
"C-w")
display -resize '1280x1024!' -window root "$file"
;;
"C-c")
sed -i "s/[0-9]*\.png\b/$wall/" $HOME/.config/sx/sxrc
;;
esac
done