commit 3a2ef27903e39a46d0b3c58a2ab28dc9d02944ee
parent 9b75bb598c8c4b8b37a240d79b08c6545091ef41
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Tue, 28 Apr 2020 14:20:29 +0200
sxiv: keymaps
Former-commit-id: b2e0303e44a3524069c68358a9bd0029d9edfea8
Diffstat:
2 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/dot.map b/dot.map
@@ -35,6 +35,7 @@ mps-youtube:
- config.json: ~/.config/mps-youtube/config.json
- playlists: ~/.config/mps-youtube/playlists
joplin/keymap.json: ~/.config/joplin/keymap.json
+sxiv: ~/.config/sxiv
# X server (Linux)
xinitrc: ~/.xinitrc
diff --git a/sxiv/exec/key-handler b/sxiv/exec/key-handler
@@ -0,0 +1,10 @@
+#!/bin/sh
+while read file; do
+ fullpath="$(pwd)$file"
+ case "$1" in
+ "y")
+ printf "$file" | clipcopy;;
+ "Y")
+ printf "$fullpath" | clipcopy;;
+ esac
+done