dotfiles/.config/nsxiv/exec/key-handler

17 lines
304 B
Plaintext
Raw Normal View History

2024-06-23 07:10:17 -04:00
#!/bin/sh
while IFS= read -r file; do
case "$1" in
w)
wallpaper-set "$file"
;;
e)
setsid -f gimp "$file"
;;
y)
xclip -sel clip -t image/png "$file"
notify-send "nsxiv" "Copied <b>${file##*/}</b> to the clipboard."
;;
esac
2024-06-23 07:10:17 -04:00
done