From c345e1f4b9d69d5c31db2825d0ed7cfca1f7cd00 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') 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