From 77b549cccb0193b05b3c56ccfad6ec6dd7faeff6 Mon Sep 17 00:00:00 2001 From: rob Date: Mon, 15 Apr 2024 23:29:04 -0400 Subject: [PATCH] config. nsxiv --- nsxiv/exec/key-handler | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 nsxiv/exec/key-handler diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler new file mode 100755 index 0000000..8b8af36 --- /dev/null +++ b/nsxiv/exec/key-handler @@ -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