config. nsxiv
This commit is contained in:
parent
3ebdfb0ee6
commit
77b549cccb
1 changed files with 15 additions and 0 deletions
15
nsxiv/exec/key-handler
Executable file
15
nsxiv/exec/key-handler
Executable 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
|
Loading…
Reference in a new issue