From 938d124d0fbd7efa79bb07f88bcc411d10565527 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Sat, 15 Jul 2023 15:11:46 -0500 Subject: Add keybinding to set image to wallpaper in nsxiv --- nsxiv/exec/key-handler | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 nsxiv/exec/key-handler (limited to 'nsxiv/exec') diff --git a/nsxiv/exec/key-handler b/nsxiv/exec/key-handler new file mode 100755 index 0000000..3db850a --- /dev/null +++ b/nsxiv/exec/key-handler @@ -0,0 +1,9 @@ +#!/bin/sh +while read file; do + case "$1" in + "w") + cp "$file" ~/background.jpg + t -r hyprpaper + ;; + esac +done -- cgit v1.2.3